Module: kamailio
Branch: master
Commit: b4afd1375c3958f1847d56efe38872b3a9d055e0
URL:
https://github.com/kamailio/kamailio/commit/b4afd1375c3958f1847d56efe38872b…
Author: Hugh Waite <hugh.waite(a)acision.com>
Committer: Hugh Waite <hugh.waite(a)acision.com>
Date: 2015-09-17T15:54:31+01:00
parser: Fix parser error when Retry-After is last header
- Prevent off-by-one error when CRLF is followed by CRLF
---
Modified: parser/parse_retry_after.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b4afd1375c3958f1847d56efe38872b…
Patch:
https://github.com/kamailio/kamailio/commit/b4afd1375c3958f1847d56efe38872b…
---
diff --git a/parser/parse_retry_after.c b/parser/parse_retry_after.c
index a467cf2..59e52d7 100644
--- a/parser/parse_retry_after.c
+++ b/parser/parse_retry_after.c
@@ -72,8 +72,6 @@ char* parse_retry_after(char* const buf, const char* const end,
unsigned* const
/* find the end of header */
for (; t<end; t++){
if (*t=='\n'){
- if (((t+1)<end) && (*(t+1)=='\r'))
- t++;
if (((t+1)<end) && (*(t+1)==' ' || *(t+1)=='\t')){
t++;
continue; /* line folding ... */