1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r2801: Wrapped functions that return a DOS error code can return DCERPC

faults if they are badly formed.  Handle this by checking the value of
NTSTATUS as well as WERROR.
This commit is contained in:
Tim Potter 2004-10-03 08:50:31 +00:00 committed by Gerald (Jerry) Carter
parent e6ecd31be8
commit bb1be78197

View File

@ -366,6 +366,10 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT,
%exception {
$action
if (NT_STATUS_IS_ERR(result)) {
set_ntstatus_exception(NT_STATUS_V(result));
return NULL;
}
if (!W_ERROR_IS_OK(arg3->out.result)) {
set_werror_exception(W_ERROR_V(arg3->out.result));
return NULL;