fix typo that can lead to seg

This commit is contained in:
Anthony Minessale 2014-07-30 22:17:47 +05:00
parent 49700ecf0f
commit 5075d4af0d
1 changed files with 1 additions and 1 deletions

View File

@ -4915,7 +4915,7 @@ void sofia_presence_handle_sip_i_message(int status,
reps++;
switch_snprintf(new_name, sizeof(new_name), "%s%s%s", SOFIA_SIP_HEADER_PREFIX, un->un_name, postfix);
if (switch_channel_get_variable(channel, new_name)) {
if (switch_event_get_header(event, new_name)) {
continue;
}