Module: kamailio Branch: master Commit: b0de27c797b60d75db882d2da606e9e38ebd5304 URL: https://github.com/kamailio/kamailio/commit/b0de27c797b60d75db882d2da606e9e3...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-11-05T17:14:11+01:00
core: tcp - fixed condition to match HEP3 packet header
---
Modified: src/core/tcp_read.c
---
Diff: https://github.com/kamailio/kamailio/commit/b0de27c797b60d75db882d2da606e9e3... Patch: https://github.com/kamailio/kamailio/commit/b0de27c797b60d75db882d2da606e9e3...
---
diff --git a/src/core/tcp_read.c b/src/core/tcp_read.c index c3e87ee34d..fc4c7a1248 100644 --- a/src/core/tcp_read.c +++ b/src/core/tcp_read.c @@ -1271,7 +1271,7 @@ static int tcp_read_hep3(struct tcp_connection *c, int* read_flags) 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 */ 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]);