revert 02c329da33ce10aea160f070d710fef406de3009 and put proper fix

This commit is contained in:
Anthony Minessale 2013-06-24 08:31:06 -05:00
parent 94d4501992
commit da0c0c0e4a
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ static void tport_ws_deinit_secondary(tport_t *self)
wsh_t *wsh = wstp->ws; wsh_t *wsh = wstp->ws;
SU_DEBUG_1(("%p destroy ws%s transport %p.\n", (void *) self, wstp->ws_secure ? "s" : "", (void *) wsh)); SU_DEBUG_1(("%p destroy ws%s transport %p.\n", (void *) self, wstp->ws_secure ? "s" : "", (void *) wsh));
ws_destroy(&wsh); ws_destroy(&wsh);
wstp->ws_initialized = 0; wstp->ws_initialized = 1;
} }
} }

View File

@ -57,7 +57,7 @@ typedef struct tport_ws_s {
tport_t wstp_tp[1]; tport_t wstp_tp[1];
wsh_t ws[1]; wsh_t ws[1];
char *wstp_buffer; char *wstp_buffer;
unsigned ws_initialized:1; SU_S8_T ws_initialized;
unsigned ws_secure:1; unsigned ws_secure:1;
unsigned:0; unsigned:0;
} tport_ws_t; } tport_ws_t;