From f7c6c90749769d0e454365225257c109dd30208e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 19 Jun 2014 23:37:34 +0500 Subject: [PATCH] fix null strcmp --- src/mod/endpoints/mod_verto/mod_verto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index ca260be05b..2eadd9fe0f 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3718,7 +3718,7 @@ static char *verto_get_dial_string(const char *uid, switch_stream_handle_t *rstr switch_mutex_lock(profile->mutex); for(jsock = profile->jsock_head; jsock; jsock = jsock->next) { - if (!strcmp(uid, jsock->uid)) { + if (!zstr(jsock->uid) && !zstr(uid) && !strcmp(uid, jsock->uid)) { use_stream->write_function(use_stream, "%s/u:%s,", EP_NAME, jsock->uuid_str); hits++; }