]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert 02c329da33ce10aea160f070d710fef406de3009 and put proper fix
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Jun 2013 13:31:06 +0000 (08:31 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Jun 2013 13:31:06 +0000 (08:31 -0500)
libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c
libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h

index f6b1862b2fa4f5b114eb7ea1498610a0f70ca4cc..c6846be1e1ec788e74c4902abffeb1963a66bf47 100644 (file)
@@ -464,7 +464,7 @@ static void tport_ws_deinit_secondary(tport_t *self)
                wsh_t *wsh = wstp->ws;
                SU_DEBUG_1(("%p destroy ws%s transport %p.\n", (void *) self, wstp->ws_secure ? "s" : "", (void *) wsh));
                ws_destroy(&wsh);
-               wstp->ws_initialized = 0;
+               wstp->ws_initialized = 1;
        }
 }
 
index c7d5d39b8f7a29ab691b6e073b70da6825d8967b..034b6f8fde10727c35e174ca14df679faa879558 100644 (file)
@@ -57,7 +57,7 @@ typedef struct tport_ws_s {
   tport_t  wstp_tp[1];
   wsh_t    ws[1];
   char    *wstp_buffer;
-  unsigned ws_initialized:1;
+  SU_S8_T  ws_initialized;
   unsigned ws_secure:1;
   unsigned:0;
 } tport_ws_t;