Module: kamailio
Branch: 5.3
Commit: 543fbbf9b1dd2429be910b27566bf273381cbf78
URL:
https://github.com/kamailio/kamailio/commit/543fbbf9b1dd2429be910b27566bf27…
Author: Stanislav S. Litvinenko <litvinenko(a)protei.ru>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-10-31T16:35:49+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/543fbbf9b1dd2429be910b27566bf27…
Patch:
https://github.com/kamailio/kamailio/commit/543fbbf9b1dd2429be910b27566bf27…
---
diff --git a/src/modules/ims_ipsec_pcscf/ipsec.c b/src/modules/ims_ipsec_pcscf/ipsec.c
index 171d884151..5306af84ae 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;
}