Skip to content

Commit fbb7ae2

Browse files
Add NULL check to wolfSSL_BIO_new_accept.
1 parent 3296e6a commit fbb7ae2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/bio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,11 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio)
24402440
{
24412441
WOLFSSL_BIO *bio;
24422442
WOLFSSL_ENTER("wolfSSL_BIO_new_accept");
2443+
2444+
if (port == NULL) {
2445+
return NULL;
2446+
}
2447+
24432448
bio = wolfSSL_BIO_new(wolfSSL_BIO_s_socket());
24442449
if (bio) {
24452450
const char* portStr = port;

0 commit comments

Comments
 (0)