mirror of https://github.com/eclipse/paho.mqtt.c
Check for NULL return #1640
This commit is contained in:
parent
200b0e4697
commit
cfcff0aa5d
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue