Merge branch 'hotfix/SegmentFault_Destroy' of https://github.com/aggresss/paho.mqtt.c into aggresss-hotfix/SegmentFault_Destroy

This commit is contained in:
Ian Craggs 2019-12-03 14:36:59 +00:00
commit f107a9e89f
1 changed files with 1 additions and 1 deletions

View File

@ -926,7 +926,7 @@ int Socket_continueWrites(fd_set* pwset)
ListElement* curpending = s.write_pending->first;
FUNC_ENTRY;
while (curpending)
while (curpending && curpending->content)
{
int socket = *(int*)(curpending->content);
int rc = 0;