diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-17 12:02:03 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-17 12:02:03 +0000 |
commit | 9c4046342c5cfb8e870d82072d52fec51eb040d5 (patch) | |
tree | 56f83c1501e111ed894d264c6ecd448ffef3d54e /pjmedia | |
parent | dc7f5a1c7646e0240f54fe95f8a1755cace45cf4 (diff) |
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
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia/sdp.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); |