Skip to content

Commit bba4671

Browse files
committed
wolfSSL_dtls13_use_quick_timeout: check for NULL input
1 parent 429b690 commit bba4671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9984,7 +9984,7 @@ int wolfSSL_dtls_get_current_timeout(WOLFSSL* ssl)
99849984
*/
99859985
int wolfSSL_dtls13_use_quick_timeout(WOLFSSL* ssl)
99869986
{
9987-
return ssl->dtls13FastTimeout;
9987+
return ssl != NULL && ssl->dtls13FastTimeout;
99889988
}
99899989

99909990
/*

0 commit comments

Comments
 (0)