Module: kamailio
Branch: 5.2
Commit: c24bd9e7e449275fa9b9b7a05960e264edb15fac
URL:
https://github.com/kamailio/kamailio/commit/c24bd9e7e449275fa9b9b7a05960e26…
Author: Stanislav S. Litvinenko <litvinenko(a)protei.ru>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-10-31T16:36:03+01:00
ims_ipsec_pcscf: fix non-close mnl_socket when a bind error
(cherry picked from commit 8cae623c7051d529d779c4bf072225c44154e403)
---
Modified: src/modules/ims_ipsec_pcscf/ipsec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c24bd9e7e449275fa9b9b7a05960e26…
Patch:
https://github.com/kamailio/kamailio/commit/c24bd9e7e449275fa9b9b7a05960e26…
---
diff --git a/src/modules/ims_ipsec_pcscf/ipsec.c b/src/modules/ims_ipsec_pcscf/ipsec.c
index 55eced727f..5576e6234e 100644
--- a/src/modules/ims_ipsec_pcscf/ipsec.c
+++ b/src/modules/ims_ipsec_pcscf/ipsec.c
@@ -65,6 +65,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;
}