[prev in list] [next in list] [prev in thread] [next in thread]
List: serdev
Subject: [sr-dev] git:master:8cae623c: ims_ipsec_pcscf: fix non-close mnl_socket when a bind error
From: Henning Westerholt <hw () skalatan ! de>
Date: 2019-10-31 15:25:58
Message-ID: E1iQCKk-0003gc-3g () www ! kamailio ! org
[Download RAW message or body]
Module: kamailio
Branch: master
Commit: 8cae623c7051d529d779c4bf072225c44154e403
URL: https://github.com/kamailio/kamailio/commit/8cae623c7051d529d779c4bf072225c44154e403
Author: Stanislav S. Litvinenko <litvinenko@protei.ru>
Committer: Henning Westerholt <hw@skalatan.de>
Date: 2019-10-31T16:25:52+01:00
ims_ipsec_pcscf: fix non-close mnl_socket when a bind error
---
Modified: src/modules/ims_ipsec_pcscf/ipsec.c
---
Diff: https://github.com/kamailio/kamailio/commit/8cae623c7051d529d779c4bf072225c44154e403.diff
Patch: https://github.com/kamailio/kamailio/commit/8cae623c7051d529d779c4bf072225c44154e403.patch
---
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;
}
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic