[sr-dev] git:4.3:bc89d93c: parser: Fix parser error when Retry-After is last header
Hugh Waite
hugh.waite at acision.com
Thu Sep 17 17:25:27 CEST 2015
Module: kamailio
Branch: 4.3
Commit: bc89d93ce935881754b21af98e1e5ccc41ac9f3a
URL: https://github.com/kamailio/kamailio/commit/bc89d93ce935881754b21af98e1e5ccc41ac9f3a
Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date: 2015-09-17T15:57:22+01:00
parser: Fix parser error when Retry-After is last header
- Prevent off-by-one error when CRLF is followed by CRLF
(cherry picked from commit deab9d061cbe180aaf32b7416c2477b4eb901ec8)
---
Modified: parser/parse_retry_after.c
---
Diff: https://github.com/kamailio/kamailio/commit/bc89d93ce935881754b21af98e1e5ccc41ac9f3a.diff
Patch: https://github.com/kamailio/kamailio/commit/bc89d93ce935881754b21af98e1e5ccc41ac9f3a.patch
---
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 ... */
More information about the sr-dev
mailing list