Commit 70b9ab9b authored by Mikhail Zabaluev's avatar Mikhail Zabaluev
Browse files

Make nua_saved_event_request() and hence NUTAG_WITH_SAVED resilient to a NULL event content

parent 58cc0629
......@@ -1049,7 +1049,7 @@ msg_t *nua_current_request(nua_t const *nua)
/** Get request message from saved nua event. @NEW_1_12_4. */
msg_t *nua_saved_event_request(nua_saved_event_t const *saved)
return saved ? su_msg_data(saved)->e_msg : NULL;
return saved && saved[0] ? su_msg_data(saved)->e_msg : NULL;
/** Save nua event and its arguments */
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