diff options
Diffstat (limited to 'vlib-api/vlibsocket/socksvr_vlib.c')
-rw-r--r-- | vlib-api/vlibsocket/socksvr_vlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vlib-api/vlibsocket/socksvr_vlib.c b/vlib-api/vlibsocket/socksvr_vlib.c index 91c6bfde..eb8dd334 100644 --- a/vlib-api/vlibsocket/socksvr_vlib.c +++ b/vlib-api/vlibsocket/socksvr_vlib.c @@ -602,6 +602,7 @@ socksvr_api_init (vlib_main_t * vm) if (bind (sockfd, (struct sockaddr *) &serv_addr, sizeof (serv_addr)) < 0) { + close (sockfd); return clib_error_return_unix (0, "bind"); } |