]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5698 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 13 Aug 2013 21:08:54 +0000 (02:08 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 13 Aug 2013 21:08:54 +0000 (02:08 +0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 5136eee8fc2c356de190b8418842c3c07f7f4faa..197a02df6af42e30144d88103287be8dbbb6f9a9 100644 (file)
@@ -154,6 +154,11 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event)
                goto end;
        }
 
+       if (!from) {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Missing From: header.\n");
+               goto end;
+       }
+
        if (!zstr(type)) {
                ct = type;
        }