Commit a30d4bce authored by Martti Mela's avatar Martti Mela

nua_glib: fixed SEGFAULT when incoming empty MESSAGE

darcs-hash:20060519103501-1b897-dccceead5b7941fc11d7846ad4be92c36462396a.gz
parent 0b166c51
......@@ -1854,9 +1854,14 @@ sof_i_message(nua_t *nua, NuaGlib *self,
url = url_as_string(self->priv->home, to->a_url);
g_signal_emit(self, signals[INCOMING_MESSAGE], 0, op, to->a_display, url, subject?subject->g_value:NULL, message->str);
g_signal_emit(self, signals[INCOMING_MESSAGE], 0, op, to->a_display, url,
subject ? subject->g_value : NULL,
message ? message->str : NULL);
su_free(self->priv->home, url);
g_string_free(message, TRUE);
if (message)
g_string_free(message, TRUE);
if (op == NULL)
op = nua_glib_op_create2(self, SIP_METHOD_MESSAGE, nh, from);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment