Module: sems Branch: master Commit: 894b97030ed6ec02b4c7c98bd03bf09d046c0055 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=894b97030ed6ec02b4c7c98bd03bf09d046c0055
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Fri May 6 18:31:15 2011 +0200 b/f: in skip_line don't skip over empty line --- core/AmB2BSession.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp index 255a213..4d78c24 100644 --- a/core/AmB2BSession.cpp +++ b/core/AmB2BSession.cpp @@ -530,9 +530,11 @@ void AmB2BSession::saveSessionDescription(const string& content_type, size_t cmp_body_length = body.length(); #define skip_line \ + if (cmp_body_length) { \ while (cmp_body_length-- && *cmp_body_begin != '\n') \ cmp_body_begin++; \ cmp_body_begin++; \ + } if (body.length() && content_type == SIP_APPLICATION_SDP) { // for SDP, skip v and o line _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
