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

Added explicit check for NULL pointers to unregister_expires_contacts().

darcs-hash:20060426071036-65a35-2dc37749cda4979b276ad0384fc5ec7a01dcfd32.gz
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)
return;
/* 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