fix seg in recent change

This commit is contained in:
Anthony Minessale 2011-09-16 14:52:14 -05:00
parent dbd5d2575e
commit 8a3c292534
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}