Skip to content

Commit bf66a60

Browse files
committed
Also prevent a dangling pointer
1 parent 83ec2dc commit bf66a60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tls/client-tls-pkcs12.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ int main(int argc, char** argv)
152152
return APP_ERR;
153153
}
154154

155-
wolfSSL_d2i_PKCS12_bio(bio, &pkcs12);
155+
pkcs12 = wolfSSL_d2i_PKCS12_bio(bio, NULL);
156156
if (!pkcs12) {
157157
printf("Failed the d2i_PKCS12_bio call\n");
158158
wolfSSL_CTX_free(ctx);

0 commit comments

Comments
 (0)