From 8cae623c7051d529d779c4bf072225c44154e403 Mon Sep 17 00:00:00 2001 From: "Stanislav S. Litvinenko" Date: Thu, 31 Oct 2019 01:54:28 +0300 Subject: [PATCH] ims_ipsec_pcscf: fix non-close mnl_socket when a bind error --- src/modules/ims_ipsec_pcscf/ipsec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/ims_ipsec_pcscf/ipsec.c b/src/modules/ims_ipsec_pcscf/ipsec.c index 171d884151e..5306af84ae5 100644 --- a/src/modules/ims_ipsec_pcscf/ipsec.c +++ b/src/modules/ims_ipsec_pcscf/ipsec.c @@ -63,6 +63,7 @@ struct mnl_socket* init_mnl_socket() if(mnl_socket_bind(mnl_socket, 0, MNL_SOCKET_AUTOPID) < 0) { LM_ERR("Error binding a MNL socket\n"); + close_mnl_socket(mnl_socket); return NULL; }