From: Anthony Minessale Date: Mon, 24 Jun 2013 13:31:06 +0000 (-0500) Subject: revert 02c329da33ce10aea160f070d710fef406de3009 and put proper fix X-Git-Tag: v1.5.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0c0c0e4a653393a39a001518c94e53c878b60b;p=thirdparty%2Ffreeswitch.git revert 02c329da33ce10aea160f070d710fef406de3009 and put proper fix --- diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c index f6b1862b2f..c6846be1e1 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c @@ -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; } } diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h b/libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h index c7d5d39b8f..034b6f8fde 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport_ws.h @@ -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;