]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix seg in recent change
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Sep 2011 19:52:14 +0000 (14:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Sep 2011 19:52:14 +0000 (14:52 -0500)
libs/freetdm/mod_freetdm/mod_freetdm.c

index 1e07db5e318cbf8ad41cdfe8956b3f249f79b8be..9ae717d8cb3af1f10d80fb5e2ea444ae554f74f0 100755 (executable)
@@ -545,7 +545,7 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session)
        tokencnt = ftdm_channel_get_token_count(tech_pvt->ftdmchan);
        for (t = 0; t < tokencnt; t++) {
                token = ftdm_channel_get_token(tech_pvt->ftdmchan, tokencnt);
-               if (!strcasecmp(uuid, token)) {
+               if (!zstr(token) && !strcasecmp(uuid, token)) {
                        uuid_found = 1;
                        break;
                }