diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-02-13 22:02:39 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-02-13 22:02:39 +0000 |
commit | 810624b0c8e7757b09b4760339373247a1041b66 (patch) | |
tree | 0cfdf0acd79b736c137ce7438ca9bd46d398101b /security | |
parent | 3d1a5b3cc598d22f951bf04b7520cdc1e7979218 (diff) | |
download | freebsd-ports-810624b0c8e7757b09b4760339373247a1041b66.zip |
Fix rare DES empty passwords bug
Diffstat (limited to 'security')
-rw-r--r-- | security/ssh/files/patch-ad | 13 | ||||
-rw-r--r-- | security/ssh2/files/patch-ad | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/security/ssh/files/patch-ad b/security/ssh/files/patch-ad new file mode 100644 index 000000000000..6b4d2646fa91 --- /dev/null +++ b/security/ssh/files/patch-ad @@ -0,0 +1,13 @@ +*** auth-passwd.c.bak Tue Jan 20 15:23:48 1998 +--- auth-passwd.c Sat Feb 14 00:49:56 1998 +*************** +*** 815,820 **** +--- 815,822 ---- + encrypted_password = crypt(password, + (correct_passwd[0] && correct_passwd[1]) ? + correct_passwd : "xx"); ++ if (!password[0] && correct_passwd[0]) ++ encrypted_password = ":"; + #endif /* HAVE_SCO_ETC_SHADOW */ + #endif /* HAVE_OSF1_C2_SECURITY */ + diff --git a/security/ssh2/files/patch-ad b/security/ssh2/files/patch-ad new file mode 100644 index 000000000000..6b4d2646fa91 --- /dev/null +++ b/security/ssh2/files/patch-ad @@ -0,0 +1,13 @@ +*** auth-passwd.c.bak Tue Jan 20 15:23:48 1998 +--- auth-passwd.c Sat Feb 14 00:49:56 1998 +*************** +*** 815,820 **** +--- 815,822 ---- + encrypted_password = crypt(password, + (correct_passwd[0] && correct_passwd[1]) ? + correct_passwd : "xx"); ++ if (!password[0] && correct_passwd[0]) ++ encrypted_password = ":"; + #endif /* HAVE_SCO_ETC_SHADOW */ + #endif /* HAVE_OSF1_C2_SECURITY */ + |