Browse Source

fix condition

Francois Perrad 7 years ago
parent
commit
bd767a3116
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/misc/pbes/pbes1.c

+ 1 - 1
src/misc/pbes/pbes1.c

@@ -31,7 +31,7 @@ static int _pkcs_12_wrap(const unsigned char *password, unsigned long password_l
    if (*outlen < 32) return CRYPT_INVALID_ARG;
    if (*outlen < 32) return CRYPT_INVALID_ARG;
    pw = XMALLOC(pwlen + 2);
    pw = XMALLOC(pwlen + 2);
    if (pw == NULL) return CRYPT_MEM;
    if (pw == NULL) return CRYPT_MEM;
-   if ((err = pkcs12_utf8_to_utf16(password, password_len, pw, &pwlen) != CRYPT_OK)) goto LBL_ERROR;
+   if ((err = pkcs12_utf8_to_utf16(password, password_len, pw, &pwlen)) != CRYPT_OK) goto LBL_ERROR;
    pw[pwlen++] = 0;
    pw[pwlen++] = 0;
    pw[pwlen++] = 0;
    pw[pwlen++] = 0;
    /* derive KEY */
    /* derive KEY */