Skip to content

Commit 13af706

Browse files
committed
Fix inverted AllocDer success check in wolfSSL_use_AltPrivateKey_Id
1 parent e31abd8 commit 13af706

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4684,7 +4684,7 @@ int wolfSSL_use_AltPrivateKey_Id(WOLFSSL* ssl, const unsigned char* id, long sz,
46844684
#endif
46854685
}
46864686
if (AllocDer(&ssl->buffers.altKey, (word32)sz, ALT_PRIVATEKEY_TYPE,
4687-
ssl->heap) == 0) {
4687+
ssl->heap) != 0) {
46884688
ret = 0;
46894689
}
46904690
}

0 commit comments

Comments
 (0)