mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
Wed May 13 12:03:01 CDT 2009 Pekka Pessi <first.last@nokia.com>
* sdp_print(): correctly handle NULL session Ignore-this: 206a9027d6dfb73371d7f0ddac5f640b Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13342 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8937b3a4e1
commit
af88f6c68d
@ -1 +1 @@
|
||||
Fri May 15 11:08:48 CDT 2009
|
||||
Fri May 15 11:09:32 CDT 2009
|
||||
|
@ -154,7 +154,10 @@ sdp_printer_t *sdp_print(su_home_t *home,
|
||||
p->pr_mode_manual = (flags & sdp_f_mode_manual) != 0;
|
||||
p->pr_mode_always = (flags & sdp_f_mode_always) != 0;
|
||||
|
||||
print_session(p, session);
|
||||
if (sdp)
|
||||
print_session(p, session);
|
||||
else
|
||||
printing_error(p, "NULL session description");
|
||||
|
||||
return p;
|
||||
}
|
||||
@ -267,8 +270,6 @@ static void print_session(sdp_printer_t *p, sdp_session_t const *sdp)
|
||||
{
|
||||
p->pr_ok = 1;
|
||||
|
||||
if (!sdp)
|
||||
printing_error(p, "NULL session description");
|
||||
if (p->pr_ok && sdp->sdp_version)
|
||||
print_version(p, sdp->sdp_version);
|
||||
if (p->pr_ok && sdp->sdp_origin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user