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

darcs-hash:20070618163458-5b6ca-0486b593b7f297e6d612f1df02c5e3deae3b4921.gz
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