diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-27 08:10:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:40 +0100 |
commit | 7d72ade608a8bb8f7b53cbd2d5420accb7df62ba (patch) | |
tree | 7589f4964d133ac5ea9b001c8040acc4f08b26fc /source4/librpc/ndr | |
parent | a7eedba7c4c86356a8453158e59eb95471dd270f (diff) | |
download | samba-7d72ade608a8bb8f7b53cbd2d5420accb7df62ba.tar.gz samba-7d72ade608a8bb8f7b53cbd2d5420accb7df62ba.tar.bz2 samba-7d72ade608a8bb8f7b53cbd2d5420accb7df62ba.zip |
r25744: add NDR_ERR_INVALID_POINTER
metze
(This used to be commit a75a59370814c02efffbb89e014df75f5a32c04b)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r-- | source4/librpc/ndr/libndr.h | 3 | ||||
-rw-r--r-- | source4/librpc/ndr/ndr.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h index 64d5da44f9..1f0a3a976c 100644 --- a/source4/librpc/ndr/libndr.h +++ b/source4/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/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 1ee8d05975..d5995f65ce 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -365,6 +365,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; } |