فهرست منبع

core: tcp - fixed condition to match HEP3 packet header

Daniel-Constantin Mierla 7 سال پیش
والد
کامیت
b0de27c797
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/core/tcp_read.c

+ 1 - 1
src/core/tcp_read.c

@@ -1271,7 +1271,7 @@ static int tcp_read_hep3(struct tcp_connection *c, int* read_flags)
 		goto skip;
 		goto skip;
 	}
 	}
 
 
-	if(p[0]!='H' || p[1]!='E' || p[2]!='P' || p[3]=='3') {
+	if(p[0]!='H' || p[1]!='E' || p[2]!='P' || p[3]!='3') {
 		/* not hep3 */
 		/* not hep3 */
 		LM_DBG("not HEP3 packet header (%u): %c %c %c %c / %x %x %x %x\n",
 		LM_DBG("not HEP3 packet header (%u): %c %c %c %c / %x %x %x %x\n",
 				size, p[0], p[1], p[2], p[3], p[0], p[1], p[2], p[3]);
 				size, p[0], p[1], p[2], p[3], p[0], p[1], p[2], p[3]);