mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
Avoiding segfault
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12323 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4957a3ef69
commit
a58bdeac21
@ -712,7 +712,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event_timed(esl_handle_t *handle, uint32_t ms
|
||||
int max, activity;
|
||||
esl_status_t status = ESL_SUCCESS;
|
||||
|
||||
if (!handle->connected) {
|
||||
if (!handle->connected || !handle || handle->sock == -1) {
|
||||
return ESL_FAIL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user