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

Freeswitch SVN mikej at freeswitch.org
Mon May 26 20:17:35 EDT 2008


Author: mikej
Date: Mon May 26 20:17:34 2008
New Revision: 8674

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

Log:
Mon May 26 08:31:50 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * su_wait.c: fix build on win32


Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Mon May 26 20:17:34 2008
@@ -1 +1 @@
-Sun May 25 11:24:02 EDT 2008
+Mon May 26 20:15:12 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c	Mon May 26 20:17:34 2008
@@ -185,13 +185,18 @@
 int su_wait_destroy(su_wait_t *waitobj)
 {
 #if SU_HAVE_WINSOCK
+  su_wait_t w0 = NULL;
   assert(waitobj != NULL);
-  if (*waitobj)
+  if (*waitobj) {
     WSACloseEvent(*waitobj);
+    *waitobj = w0;
+  }
 #else
   su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
   assert(waitobj != NULL);
-  *waitobj = w0;
+  if (waitobj) {
+    *waitobj = w0;
+  }
 #endif
   return waitobj ? 0 : -1;
 }



More information about the Freeswitch-svn mailing list