[packages] srelay: add a patch to fix auth accepting any passwords (closes: #6781)
[openwrt/svn-archive/archive.git] / net / srelay / patches / 005-fix_auth_accept_any_password.patch
1 Without this patch, authentication will accept any password!
2
3 --- a/auth-pwd.c
4 +++ b/auth-pwd.c
5 @@ -251,12 +251,9 @@ int checkpasswd(char *user, char *pass)
6 memset(spwd->sp_pwdp, 0, strlen(spwd->sp_pwdp));
7 #endif
8
9 -#if defined(FREEBSD) || defined(SOLARIS)
10 if (matched) {
11 return(0);
12 } else {
13 return(-1);
14 }
15 -#endif
16 - return(0);
17 }