Fixed a segfault when trans->msg is null due to sip->transactions is empty.
commit95caa1e3e8e9e4096fda35713cec40120e7b23a2
authorAnibal Avelar <aavelar@cofradia.org>
Tue, 19 Jan 2010 06:30:57 +0000 (19 00:30 -0600)
committerAnibal Avelar <aavelar@cofradia.org>
Tue, 19 Jan 2010 06:30:57 +0000 (19 00:30 -0600)
treec1606c0568b4f6571e83760fe78895a62584ed43
parentdeaa85aaee5130c608169fb85f1e17175cb474a0
Fixed a segfault when trans->msg is null due to sip->transactions is empty.
Pidgin always crashes without this validation. The function g_slist_length(sip->transactions) backs 0 when this happen, seems the function g_slist_length works wrong for empty lists [1].

[1] http://lists.ofono.org/pipermail/ofono/2009-July/000239.html
src/core/sipe.c