Skip to content

Commit bd767a3

Browse files
committed
fix condition
1 parent 46bb470 commit bd767a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc/pbes/pbes1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int _pkcs_12_wrap(const unsigned char *password, unsigned long password_l
3131
if (*outlen < 32) return CRYPT_INVALID_ARG;
3232
pw = XMALLOC(pwlen + 2);
3333
if (pw == NULL) return CRYPT_MEM;
34-
if ((err = pkcs12_utf8_to_utf16(password, password_len, pw, &pwlen) != CRYPT_OK)) goto LBL_ERROR;
34+
if ((err = pkcs12_utf8_to_utf16(password, password_len, pw, &pwlen)) != CRYPT_OK) goto LBL_ERROR;
3535
pw[pwlen++] = 0;
3636
pw[pwlen++] = 0;
3737
/* derive KEY */

0 commit comments

Comments
 (0)