aboutsummaryrefslogtreecommitdiff
path: root/share/security/patches/SA-12:02/crypt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'share/security/patches/SA-12:02/crypt.patch')
-rw-r--r--share/security/patches/SA-12:02/crypt.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/security/patches/SA-12:02/crypt.patch b/share/security/patches/SA-12:02/crypt.patch
new file mode 100644
index 0000000000..ef93ac14f2
--- /dev/null
+++ b/share/security/patches/SA-12:02/crypt.patch
@@ -0,0 +1,13 @@
+Index: secure/lib/libcrypt/crypt-des.c
+===================================================================
+--- secure/lib/libcrypt/crypt-des.c (revision 234682)
++++ secure/lib/libcrypt/crypt-des.c (working copy)
+@@ -606,7 +606,7 @@
+ q = (u_char *)keybuf;
+ while (q - (u_char *)keybuf - 8) {
+ *q++ = *key << 1;
+- if (*(q - 1))
++ if (*key != '\0')
+ key++;
+ }
+ if (des_setkey((char *)keybuf))