diff options
Diffstat (limited to 'source4/lib/socket/socket_ip.c')
-rw-r--r-- | source4/lib/socket/socket_ip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/socket/socket_ip.c b/source4/lib/socket/socket_ip.c index cab51beafb..d2d57798d4 100644 --- a/source4/lib/socket/socket_ip.c +++ b/source4/lib/socket/socket_ip.c @@ -50,6 +50,8 @@ static NTSTATUS ipv4_init(struct socket_context *sock) return map_nt_error_from_unix_common(errno); } + set_close_on_exec(sock->fd); + sock->backend_name = "ipv4"; sock->family = AF_INET; @@ -610,6 +612,8 @@ static NTSTATUS ipv6_init(struct socket_context *sock) return map_nt_error_from_unix_common(errno); } + set_close_on_exec(sock->fd); + sock->backend_name = "ipv6"; sock->family = AF_INET6; |