From 7d72ade608a8bb8f7b53cbd2d5420accb7df62ba Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 27 Oct 2007 08:10:14 +0200 Subject: r25744: add NDR_ERR_INVALID_POINTER metze (This used to be commit a75a59370814c02efffbb89e014df75f5a32c04b) --- source4/librpc/ndr/libndr.h | 3 ++- source4/librpc/ndr/ndr.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') 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; } -- cgit