- sip_utils.c:sip_del_myvia check for NULL list

This commit is contained in:
Thomas Ries
2004-05-25 17:40:35 +00:00
parent 27d3cdf023
commit 6c84c4879c
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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
+5
View File
@@ -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;