From 9c4046342c5cfb8e870d82072d52fec51eb040d5 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 17 Jul 2006 12:02:03 +0000 Subject: Set the SDP parser to allow blank newline at the end of the message git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@609 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/src/pjmedia/sdp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pjmedia') diff --git a/pjmedia/src/pjmedia/sdp.c b/pjmedia/src/pjmedia/sdp.c index 09e5217f..11ae3a25 100644 --- a/pjmedia/src/pjmedia/sdp.c +++ b/pjmedia/src/pjmedia/sdp.c @@ -1079,6 +1079,16 @@ PJ_DEF(pj_status_t) pjmedia_sdp_parse( pj_pool_t *pool, case 'v': parse_version(&scanner, &ctx); break; + case 13: + /* Allow empty newline at the end of the message */ + pj_scan_get_char(&scanner); + /* Continue below */ + case 10: + pj_scan_get_char(&scanner); + if (!pj_scan_is_eof(&scanner)) { + on_scanner_error(&scanner); + } + break; default: if (cur_name >= 'a' && cur_name <= 'z') parse_generic_line(&scanner, &dummy, &ctx); -- cgit v1.2.3