mirror of
https://github.com/samba-team/samba.git
synced 2025-11-06 08:23:50 +03:00
r2490: Some changes to take into account non-error NTSTATUS codes being returned:
- Only throw an exception if NT_STATUS_IS_ERR() instead of
!NT_STATUS_IS_OK().
- Add the NTSTATUS value to the returned dictionary under a key of
'result' so calling functions can access it.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a0e571a9dd
commit
4ddcae90a2
@@ -289,7 +289,7 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT,
|
||||
|
||||
%exception {
|
||||
$action
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
if (NT_STATUS_IS_ERR(result)) {
|
||||
set_ntstatus_exception(NT_STATUS_V(result));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user