Module: sip-router Branch: 4.1 Commit: ad5235229f59ba5d1f4216e144291e110fee0211 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ad5235229f59ba5d1f4216e144291e110fee0211
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: Wed May 14 23:28:24 2014 +0200 parser/sdp: assign stream var only if session is not null (cherry picked from commit 1cefc0c5f83eb4b7b6ffefc6ab383d7aae6de07f) --- parser/sdp/sdp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c index fde60d3..1e53940 100644 --- a/parser/sdp/sdp.c +++ b/parser/sdp/sdp.c @@ -871,12 +871,13 @@ void print_sdp_stream(sdp_stream_cell_t *stream, int log_level) void print_sdp_session(sdp_session_cell_t *session, int log_level) { - sdp_stream_cell_t *stream = session->streams; + sdp_stream_cell_t *stream; if (session==NULL) { LM_ERR("NULL session\n"); return; } + stream = session->streams; LOG(log_level, "..session[%d]:%p=>%p '%.*s' '%.*s' '%.*s' '%.*s:%.*s' (%d)=>%p\n", session->session_num, session, session->next, _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
