summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorLumir Balhar <lbalhar@redhat.com>2017-09-06 09:27:02 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-09-06 11:35:18 +0200
commitc81aff362fe99a65385c6f8337ffcb47c9456829 (patch)
tree40ce2b17b9a9890610f9c6c6302bdc101115f36e /source4/libcli
parent6f877285a3e92029cd761d55836c062a93e94749 (diff)
downloadsamba-c81aff362fe99a65385c6f8337ffcb47c9456829.tar.gz
python: Fix bad type in conversion of NTSTATUS.
More info: https://lists.samba.org/archive/samba-technical/2017-August/122574.html Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/pyerrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/pyerrors.h b/source4/libcli/util/pyerrors.h
index c3b307646ba..1c91c5a9e41 100644
--- a/source4/libcli/util/pyerrors.h
+++ b/source4/libcli/util/pyerrors.h
@@ -24,7 +24,7 @@
#define PyErr_FromHRESULT(err) Py_BuildValue("(i,s)", HRES_ERROR_V(err), discard_const_p(char, hresult_errstr_const(err)))
-#define PyErr_FromNTSTATUS(status) Py_BuildValue("(i,s)", NT_STATUS_V(status), discard_const_p(char, get_friendly_nt_error_msg(status)))
+#define PyErr_FromNTSTATUS(status) Py_BuildValue("(I,s)", NT_STATUS_V(status), discard_const_p(char, get_friendly_nt_error_msg(status)))
#define PyErr_FromString(str) Py_BuildValue("(s)", discard_const_p(char, str))