summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-10-27 08:10:14 +0000
committerStefan Metzmacher <metze@samba.org>2007-10-27 10:27:38 +0200
commit5a57da8e37d84e8aefb2f348646adae1df1eecfb (patch)
treeedddf34d9281bd91c2e47040b6608194f5363d87
parent101dc361625606341a55dbb65aa33d94cf1cd9c8 (diff)
downloadsamba-5a57da8e37d84e8aefb2f348646adae1df1eecfb.tar.gz
samba-5a57da8e37d84e8aefb2f348646adae1df1eecfb.tar.bz2
samba-5a57da8e37d84e8aefb2f348646adae1df1eecfb.zip
add NDR_ERR_INVALID_POINTER
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25744 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 3625ed395c23101095321de80e89fcbc8c76be4c)
-rw-r--r--source3/librpc/ndr/libndr.h3
-rw-r--r--source3/librpc/ndr/ndr.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/librpc/ndr/libndr.h b/source3/librpc/ndr/libndr.h
index 4531293c7b..ee27464031 100644
--- a/source3/librpc/ndr/libndr.h
+++ b/source3/librpc/ndr/libndr.h
@@ -174,7 +174,8 @@ enum ndr_err_code {
NDR_ERR_ALLOC,
NDR_ERR_RANGE,
NDR_ERR_TOKEN,
- NDR_ERR_IPV4ADDRESS
+ NDR_ERR_IPV4ADDRESS,
+ NDR_ERR_INVALID_POINTER
};
enum ndr_compression_alg {
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c
index 552545999b..326ab12e9b 100644
--- a/source3/librpc/ndr/ndr.c
+++ b/source3/librpc/ndr/ndr.c
@@ -328,6 +328,8 @@ static NTSTATUS ndr_map_error(enum ndr_err_code ndr_err)
return NT_STATUS_NO_MEMORY;
case NDR_ERR_ARRAY_SIZE:
return NT_STATUS_ARRAY_BOUNDS_EXCEEDED;
+ case NDR_ERR_INVALID_POINTER:
+ return NT_STATUS_INVALID_PARAMETER_MIX;
default:
break;
}