- sip_utils.c:sip_del_myvia check for NULL list
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user