[sr-dev] git:master: parser: Fix parsing of Retry-After header

Hugh Waite hugh.waite at acision.com
Tue Sep 9 12:25:18 CEST 2014


Module: sip-router
Branch: master
Commit: accfbe0abb0d811e249b687cb6047c9234a6d884
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=accfbe0abb0d811e249b687cb6047c9234a6d884

Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date:   Mon Sep  8 17:46:55 2014 +0100

parser: Fix parsing of Retry-After header

- Allow no space between duration and optional comment

---

 parser/parse_retry_after.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/parser/parse_retry_after.c b/parser/parse_retry_after.c
index 2b37f91..5c30830 100644
--- a/parser/parse_retry_after.c
+++ b/parser/parse_retry_after.c
@@ -59,6 +59,7 @@ char* parse_retry_after(char* const buf, const char* const end, unsigned* const
 				case ';':
 				case '\r':
 				case '\n':
+				case '(':
 					goto found;
 				default:
 					/* invalid char */




More information about the sr-dev mailing list