diff --git a/ChangeLog b/ChangeLog index 795eabc..f039547 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 0.5.7 ===== + 25-May-2004: - sip_utils.c:sip_del_myvia check for NULL list 24-May-2004: - included doc/sample_* to package 23-May-2004: - doc/: added configuration example for X-Lite diff --git a/src/sip_utils.c b/src/sip_utils.c index 0665e92..a9edf25 100644 --- a/src/sip_utils.c +++ b/src/sip_utils.c @@ -643,6 +643,11 @@ int sip_del_myvia (osip_message_t *response) { DEBUGC(DBCLASS_PROXY,"deleting topmost VIA"); via = osip_list_get (response->vias, 0); + if ( via == NULL ) { + ERROR("Got empty VIA list - is your UA configured properly?"); + return STS_FAILURE; + } + if ( is_via_local(via) == STS_FALSE ) { ERROR("I'm trying to delete a VIA but it's not mine! host=%s",via->host); return STS_FAILURE;