diff options
-rw-r--r-- | source4/lib/socket/socket_ipv4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/socket/socket_ipv4.c b/source4/lib/socket/socket_ipv4.c index 4f8b1e6dd6..93ddf68046 100644 --- a/source4/lib/socket/socket_ipv4.c +++ b/source4/lib/socket/socket_ipv4.c @@ -111,6 +111,9 @@ static NTSTATUS ipv4_connect(struct socket_context *sock, } srv_ip = interpret_addr2(srv_address); + if (!srv_ip.addr) { + return NT_STATUS_BAD_NETWORK_NAME; + } ZERO_STRUCT(srv_addr); #ifdef HAVE_SOCK_SIN_LEN |