Check for NULL return #1640

This commit is contained in:
Ian Craggs 2026-02-14 16:53:53 +00:00
parent 200b0e4697
commit cfcff0aa5d
No known key found for this signature in database
GPG Key ID: A7AE1A8F2CCAB186
1 changed files with 2 additions and 1 deletions

View File

@ -914,7 +914,8 @@ char *SSLSocket_getdata(SSL* ssl, SOCKET socket, size_t bytes, size_t* actual_le
goto exit;
}
buf = SocketBuffer_getQueuedData(socket, bytes, actual_len);
if ((buf = SocketBuffer_getQueuedData(socket, bytes, actual_len)) == NULL)
goto exit;
if (*actual_len != bytes)
{