packages/net/srelay/patches/005-fix_auth_accept_any_password.patch
nico 62ab0da953 [packages] srelay: add a patch to fix auth accepting any passwords (closes: #6781)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19954 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 17:22:22 +00:00

18 lines
354 B
Diff

Without this patch, authentication will accept any password!
--- a/auth-pwd.c
+++ b/auth-pwd.c
@@ -251,12 +251,9 @@ int checkpasswd(char *user, char *pass)
memset(spwd->sp_pwdp, 0, strlen(spwd->sp_pwdp));
#endif
-#if defined(FREEBSD) || defined(SOLARIS)
if (matched) {
return(0);
} else {
return(-1);
}
-#endif
- return(0);
}