[Freeswitch-svn] [commit] r8021 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su

Freeswitch SVN mikej at freeswitch.org
Fri Apr 4 13:39:19 EDT 2008


Author: mikej
Date: Fri Apr  4 13:39:18 2008
New Revision: 8021

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_addrinfo.c

Log:
Fri Apr  4 11:14:04 EDT 2008  Pekka.Pessi at nokia.com
  * su_addrinfo.c: avoid crash in su_freeaddrinfo() if ai is NULL



Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_addrinfo.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_addrinfo.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_addrinfo.c	Fri Apr  4 13:39:18 2008
@@ -805,6 +805,9 @@
 {
 	struct addrinfo *next;
 
+	if (ai == NULL)
+		return;
+
 	do {
 		next = ai->ai_next;
 		if (ai->ai_canonname)



More information about the Freeswitch-svn mailing list