summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-01 08:27:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:02 -0500
commit5d55ee570beded36f985c907fcf952659557849c (patch)
tree9075dba99b55638a8776ce21d8a21cc172751d06 /source4/lib
parentf450b0a02a71370865094a9e3ac5271c4cde9c88 (diff)
downloadsamba-5d55ee570beded36f985c907fcf952659557849c.tar.gz
samba-5d55ee570beded36f985c907fcf952659557849c.tar.bz2
samba-5d55ee570beded36f985c907fcf952659557849c.zip
r8044: give a better error code
metze (This used to be commit fdbf822f1c90cba110d91720ea586ceef9de38b2)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/socket_unix.c6
1 files changed, 3 insertions, 3 deletions
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);