Commit fbd67f30 authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: check dialog usage before using it in nua_update_server_respond()

Ignore-this: 543e8d6d999a5a4d54600f1dbdfb1444

Coverity issue 7312.

darcs-hash:20090512180745-db55f-34a8cf25e4f9a7a3b46933dfb39929db174b0a28.gz
parent 8377e8b7
......@@ -3577,7 +3577,7 @@ int nua_update_server_respond(nua_server_request_t *sr, tagi_t const *tags)
}
}
if (200 <= sr->sr_status && sr->sr_status < 300) {
if (ss && 200 <= sr->sr_status && sr->sr_status < 300) {
session_timer_preferences(ss->ss_timer,
sip,
NH_PGET(nh, supported),
......@@ -3586,7 +3586,7 @@ int nua_update_server_respond(nua_server_request_t *sr, tagi_t const *tags)
NH_PGET(nh, refresher),
NH_PGET(nh, min_se));
if (ss && session_timer_is_supported(ss->ss_timer)) {
if (session_timer_is_supported(ss->ss_timer)) {
nua_server_request_t *sr0;
int uas;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment