Skip to content

Commit cfcff0a

Browse files
committed
Check for NULL return #1640
1 parent 200b0e4 commit cfcff0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SSLSocket.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,8 @@ char *SSLSocket_getdata(SSL* ssl, SOCKET socket, size_t bytes, size_t* actual_le
914914
goto exit;
915915
}
916916

917-
buf = SocketBuffer_getQueuedData(socket, bytes, actual_len);
917+
if ((buf = SocketBuffer_getQueuedData(socket, bytes, actual_len)) == NULL)
918+
goto exit;
918919

919920
if (*actual_len != bytes)
920921
{

0 commit comments

Comments
 (0)