From 5d55ee570beded36f985c907fcf952659557849c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 1 Jul 2005 08:27:23 +0000 Subject: r8044: give a better error code metze (This used to be commit fdbf822f1c90cba110d91720ea586ceef9de38b2) --- source4/lib/socket/socket_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib/socket') diff --git a/source4/lib/socket/socket_unix.c b/source4/lib/socket/socket_unix.c index f27076b5d8..9c19aaace5 100644 --- a/source4/lib/socket/socket_unix.c +++ b/source4/lib/socket/socket_unix.c @@ -101,7 +101,7 @@ static NTSTATUS unixdom_connect(struct socket_context *sock, int ret; if (strlen(srv_address)+1 > sizeof(srv_addr.sun_path)) { - return NT_STATUS_INVALID_PARAMETER; + return NT_STATUS_OBJECT_PATH_INVALID; } ZERO_STRUCT(srv_addr); @@ -124,7 +124,7 @@ static NTSTATUS unixdom_listen(struct socket_context *sock, int ret; if (strlen(my_address)+1 > sizeof(my_addr.sun_path)) { - return NT_STATUS_INVALID_PARAMETER; + return NT_STATUS_OBJECT_PATH_INVALID; } /* delete if it already exists */ @@ -259,7 +259,7 @@ static NTSTATUS unixdom_sendto(struct socket_context *sock, struct sockaddr_un srv_addr; if (strlen(dest_addr)+1 > sizeof(srv_addr.sun_path)) { - return NT_STATUS_INVALID_PARAMETER; + return NT_STATUS_OBJECT_PATH_INVALID; } ZERO_STRUCT(srv_addr); -- cgit