Module: kamailio Branch: 5.3 Commit: 543fbbf9b1dd2429be910b27566bf273381cbf78 URL: https://github.com/kamailio/kamailio/commit/543fbbf9b1dd2429be910b27566bf273381cbf78
Author: Stanislav S. Litvinenko <litvine...@protei.ru> Committer: Henning Westerholt <h...@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/543fbbf9b1dd2429be910b27566bf273381cbf78.diff Patch: https://github.com/kamailio/kamailio/commit/543fbbf9b1dd2429be910b27566bf273381cbf78.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