--- embedaddon/php/ext/standard/crypt_freesec.c 2012/05/29 12:34:43 1.1.1.2 +++ embedaddon/php/ext/standard/crypt_freesec.c 2013/07/22 01:32:05 1.1.1.3 @@ -1,5 +1,5 @@ /* - $Id: crypt_freesec.c,v 1.1.1.2 2012/05/29 12:34:43 misho Exp $ + $Id: crypt_freesec.c,v 1.1.1.3 2013/07/22 01:32:05 misho Exp $ */ /* * This version is derived from the original implementation of FreeSec @@ -41,7 +41,7 @@ * SUCH DAMAGE. * * $Owl: Owl/packages/glibc/crypt_freesec.c,v 1.4 2005/11/16 13:08:32 solar Exp $ - * $Id: crypt_freesec.c,v 1.1.1.2 2012/05/29 12:34:43 misho Exp $ + * $Id: crypt_freesec.c,v 1.1.1.3 2013/07/22 01:32:05 misho Exp $ * * This is an original implementation of the DES and the crypt(3) interfaces * by David Burren . @@ -629,7 +629,8 @@ _crypt_extended_r(const char *key, const char *setting */ q = (u_char *) keybuf; while (q - (u_char *) keybuf < sizeof(keybuf)) { - if ((*q++ = *key << 1)) + *q++ = *key << 1; + if (*key) key++; } if (des_setkey((u_char *) keybuf, data))