From: Anthony Minessale Date: Tue, 13 Aug 2013 21:08:54 +0000 (+0500) Subject: FS-5698 --resolve X-Git-Tag: v1.5.5~45^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae64753112a64cbdca96b03d140a8f6a9f8dddcc;p=thirdparty%2Ffreeswitch.git FS-5698 --resolve --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 5136eee8fc..197a02df6a 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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; }