Skip to content

Commit cf5da7b

Browse files
committed
Fix inverted AllocDer success check in wolfSSL_use_AltPrivateKey_Label
1 parent ae3c00f commit cf5da7b

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
@@ -4732,7 +4732,7 @@ int wolfSSL_use_AltPrivateKey_Label(WOLFSSL* ssl, const char* label, int devId)
47324732
#endif
47334733
}
47344734
if (AllocDer(&ssl->buffers.altKey, (word32)sz, ALT_PRIVATEKEY_TYPE,
4735-
ssl->heap) == 0) {
4735+
ssl->heap) != 0) {
47364736
ret = 0;
47374737
}
47384738
}

0 commit comments

Comments
 (0)