;
else if (nh->nh_soa && soa_is_complete(nh->nh_soa)) {
/* signal SOA that O/A round(s) is (are) complete */
- if (soa_activate(nh->nh_soa, NULL) >= 0)
+ if (soa_activate(nh->nh_soa, NULL) >= 0) {
ss->ss_sdp_version = soa_get_user_version(nh->nh_soa);
+ }
}
else if (nh->nh_soa == NULL
/* NUA does not necessarily know dirty details */
}
else {
answer_sent = 1;
- if (soa_activate(nh->nh_soa, NULL) >= 0)
+ if (soa_activate(nh->nh_soa, NULL) >= 0) {
ss->ss_sdp_version = soa_get_user_version(nh->nh_soa);
+ }
}
}
else if (nh->nh_soa == NULL) {
else if (answer)
sr->sr_answer_sent = 1 + reliable, ss->ss_oa_sent = Answer;
- if (answer && reliable)
+ if (answer && reliable && nh->nh_soa) {
ss->ss_sdp_version = soa_get_user_version(nh->nh_soa);
+ }
}
if (reliable && sr->sr_status < 200) {