Commit 3de689b9 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix potential issue

parent f924f1fa
......@@ -26,11 +26,12 @@ struct belle_sip_udp_listening_point{
static void belle_sip_udp_listening_point_uninit(belle_sip_udp_listening_point_t *lp){
if (lp->sock!=-1) belle_sip_close_socket(lp->sock);
if (lp->source) {
lp->source = NULL;
if (lp->sock!=-1) belle_sip_close_socket(lp->sock);
static belle_sip_channel_t *udp_create_channel(belle_sip_listening_point_t *lp, const belle_sip_hop_t *hop){
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