소스 검색

core: fixed segmentation fault I had added to forward.h

Peter Dunkley 13 년 전
부모
커밋
11a2ad18ea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      forward.h

+ 1 - 1
forward.h

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