[Freeswitch-svn] [commit] r8336 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/tport

Freeswitch SVN mikej at freeswitch.org
Fri May 9 13:45:13 EDT 2008


Author: mikej
Date: Fri May  9 13:45:13 2008
New Revision: 8336

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c

Log:
Wed May  7 10:59:16 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * tport_tls.c: avoid free(NULL)



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Fri May  9 13:45:13 2008
@@ -1 +1 @@
-Fri May  9 13:44:20 EDT 2008
+Fri May  9 13:45:02 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c	Fri May  9 13:45:13 2008
@@ -299,7 +299,9 @@
     BIO_free(tls->bio_con);
 
   for (k = 0; k < TLS_MAX_HOSTS; k++)
-    free(tls->hosts[k]), tls->hosts[k] = NULL;
+    if (tls->hosts[k]) {
+      free(tls->hosts[k]), tls->hosts[k] = NULL;
+    }
 
   free(tls);
 }



More information about the Freeswitch-svn mailing list