Commit 56be3429 authored by Pekka Pessi's avatar Pekka Pessi

s2sip.c: check for NULL argument in s2_sip_update_dialog()

MeeGo Coverity issue CID #11757
parent ae51dc95
......@@ -594,7 +594,7 @@ int s2_sip_update_dialog(struct dialog *d, struct message *m)
{
int status = 0;
if (m->sip->sip_status)
if (m && m->sip->sip_status)
status = m->sip->sip_status->st_status;
if (100 < status && status < 300) {
......
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