summaryrefslogtreecommitdiffstats
path: root/source/lib/socket/socket_unix.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-01 08:27:23 +0000
committerStefan Metzmacher <metze@samba.org>2005-07-01 08:27:23 +0000
commit61beab01c837bbd067aea282f6898178289b7799 (patch)
tree1fbbdcbd15d4cc7ada5d1b050dc724104c66fcb0 /source/lib/socket/socket_unix.c
parent015cc8c99957d28c4bc319db9f18ee695e34b363 (diff)
downloadsamba-61beab01c837bbd067aea282f6898178289b7799.tar.gz
samba-61beab01c837bbd067aea282f6898178289b7799.tar.xz
samba-61beab01c837bbd067aea282f6898178289b7799.zip
r8044: give a better error code
metze
Diffstat (limited to 'source/lib/socket/socket_unix.c')
-rw-r--r--source/lib/socket/socket_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/socket/socket_unix.c b/source/lib/socket/socket_unix.c
index f27076b5d8a..9c19aaace5d 100644
--- a/source/lib/socket/socket_unix.c
+++ b/source/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);