]> git.pld-linux.org Git - packages/php.git/blob - php-crypt-null.patch
ee02006281d6d65cb5997d5cdd6ba0a7ce29fbd8
[packages/php.git] / php-crypt-null.patch
1 --- php-5.2.17/ext/standard/crypt.c~    2013-03-25 17:26:27.000000000 +0100
2 +++ php-5.2.17/ext/standard/crypt.c     2013-03-25 17:27:42.866436012 +0100
3 @@ -163,7 +163,12 @@
4                 RETURN_STRING(crypt_r(str, salt, &buffer), 1);
5         }
6  #else
7 -       RETURN_STRING(crypt(str, salt), 1);
8 +       crypt_res = crypt(str, salt);
9 +       if (!crypt_res) {
10 +               RETURN_FALSE;
11 +       } else {
12 +               RETURN_STRING(crypt_res, 1);
13 +       }
14  #endif
15  }
16  /* }}} */
This page took 0.036959 seconds and 2 git commands to generate.