Browse code

core: tcp - fixed condition to match HEP3 packet header

Daniel-Constantin Mierla authored on 05/11/2017 16:14:11
Showing 1 changed files
... ...
@@ -1271,7 +1271,7 @@ static int tcp_read_hep3(struct tcp_connection *c, int* read_flags)
1271 1271
 		goto skip;
1272 1272
 	}
1273 1273
 
1274
-	if(p[0]!='H' || p[1]!='E' || p[2]!='P' || p[3]=='3') {
1274
+	if(p[0]!='H' || p[1]!='E' || p[2]!='P' || p[3]!='3') {
1275 1275
 		/* not hep3 */
1276 1276
 		LM_DBG("not HEP3 packet header (%u): %c %c %c %c / %x %x %x %x\n",
1277 1277
 				size, p[0], p[1], p[2], p[3], p[0], p[1], p[2], p[3]);