Commit 717b6df0 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added explicit check for NULL pointers to unregister_expires_contacts().

parent 98d94edf
......@@ -1032,6 +1032,9 @@ void unregister_expires_contacts(msg_t *msg, sip_t *sip)
sip_contact_t *m;
int unregister_all;
if (msg == NULL || sip == NULL)
/* Remove payload */
while (sip->sip_payload)
sip_header_remove(msg, sip, (sip_header_t *)sip->sip_payload);
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