]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-crypt.patch
8a66b7357320f813a1d50296d119ffbba6e967d4
[packages/lighttpd.git] / lighttpd-crypt.patch
1 ; http://redmine.lighttpd.net/issues/2486
2 diff -urN lighttpd-1.4.32.org/src/http_auth.c lighttpd-1.4.32/src/http_auth.c
3 --- lighttpd-1.4.32.org/src/http_auth.c 2012-05-17 11:29:24.000000000 +0200
4 +++ lighttpd-1.4.32/src/http_auth.c     2013-06-05 19:58:07.828450230 +0200
5 @@ -688,6 +688,8 @@
6                 salt[salt_len] = '\0';
7  
8                 crypted = crypt(pw, salt);
9 +               if (NULL == crypted)
10 +                       return -1;
11  
12                 if (0 == strcmp(password->ptr, crypted)) {
13                         return 0;
This page took 0.021858 seconds and 2 git commands to generate.