소스 검색

ims_ipsec_pcscf: fix non-close mnl_socket when a bind error

Stanislav S. Litvinenko 5 년 전
부모
커밋
8cae623c70
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/modules/ims_ipsec_pcscf/ipsec.c

+ 1 - 0
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;
     }