Commit 5494fbc1 authored by Pekka Pessi's avatar Pekka Pessi

nua_server.c: replying 200 OK to BYE left unreplied upon nua_handle_destroy

Ignore-this: bf90d0f94955ef8306c2d2ae7f80058b

parent c74b6426
......@@ -299,8 +299,12 @@ void nua_server_request_destroy(nua_server_request_t *sr)
if (sr->sr_irq)
if (sr->sr_irq) {
if (sr->sr_method == sip_method_bye && sr->sr_status < 200) {
nta_incoming_treply(sr->sr_irq, SIP_200_OK, TAG_END());
nta_incoming_destroy(sr->sr_irq), sr->sr_irq = NULL;
if (sr->sr_request.msg)
msg_destroy(sr->sr_request.msg), sr->sr_request.msg = NULL;
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