From 0b91f3916430d0271eab867675d44c5439de40c2 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 29 Aug 2007 13:07:03 +0000 Subject: r24780: More work allowing libutil to be used by external users. (This used to be commit 31993cf67b816a184a4a4e92ef8ca2532c797190) --- source4/rpc_server/dcesrv_auth.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/dcesrv_auth.c b/source4/rpc_server/dcesrv_auth.c index 627da844aa..49a4c3de13 100644 --- a/source4/rpc_server/dcesrv_auth.c +++ b/source4/rpc_server/dcesrv_auth.c @@ -471,7 +471,10 @@ BOOL dcesrv_auth_response(struct dcesrv_call_state *call, if (NT_STATUS_IS_OK(status)) { blob->length -= dce_conn->auth_state.auth_info->credentials.length; - status = data_blob_append(call, blob, creds2.data, creds2.length); + if (!data_blob_append(call, blob, creds2.data, creds2.length)) + status = NT_STATUS_NO_MEMORY; + else + status = NT_STATUS_OK; } /* If we did AEAD signing of the packet headers, then we hope @@ -491,7 +494,10 @@ BOOL dcesrv_auth_response(struct dcesrv_call_state *call, &creds2); if (NT_STATUS_IS_OK(status)) { blob->length -= dce_conn->auth_state.auth_info->credentials.length; - status = data_blob_append(call, blob, creds2.data, creds2.length); + if (!data_blob_append(call, blob, creds2.data, creds2.length)) + status = NT_STATUS_NO_MEMORY; + else + status = NT_STATUS_OK; } /* If we did AEAD signing of the packet headers, then we hope -- cgit