Commit 841c656e authored by Yann Diorcet's avatar Yann Diorcet
Browse files

uPnP fix invalid memory access in upnp_context_free_callbacks

parent a87064f8
......@@ -87,6 +87,7 @@ int upnp_igd_port_mapping_callback(Upnp_EventType event_type, void* event, void
return ret;
}
/********************************************************************************
* upnp_igd_get_local_ipaddress
*
......@@ -101,6 +102,7 @@ char *upnp_igd_get_local_ipaddress(upnp_igd_context *igd_ctxt) {
return UpnpGetServerIpAddress();
}
/********************************************************************************
* upnp_igd_get_external_ipaddress
*
......
......@@ -82,8 +82,8 @@ void upnp_context_free_callbacks(upnp_igd_context *igd_ctxt) {
ithread_mutex_lock(&igd_ctxt->callback_mutex);
while(igd_ctxt->callback_events != NULL) {
node = igd_ctxt->callback_events;
igd_ctxt->callback_events = node->next;
free(node);
igd_ctxt->callback_events = igd_ctxt->callback_events->next;
}
ithread_mutex_unlock(&igd_ctxt->callback_mutex);
}
......
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