... | ... |
@@ -145,7 +145,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len) |
145 | 145 |
else if (dst->proto == PROTO_TLS) |
146 | 146 |
con = tcpconn_get(dst->id, 0, 0, 0, 0); |
147 | 147 |
#endif |
148 |
- if (con->flags & F_CONN_WS) |
|
148 |
+ if (con && con->flags & F_CONN_WS) |
|
149 | 149 |
{ |
150 | 150 |
memset(&wsev, 0, sizeof(ws_event_info_t)); |
151 | 151 |
wsev.type = SREV_TCP_WS_FRAME_OUT; |