From 810624b0c8e7757b09b4760339373247a1041b66 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 13 Feb 1998 22:02:39 +0000 Subject: Fix rare DES empty passwords bug --- security/ssh/files/patch-ad | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 security/ssh/files/patch-ad (limited to 'security/ssh/files/patch-ad') 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 */ + -- cgit v1.2.3