1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s3:pylibsmb: improve return types (false => NULL)

NULL, a.k.a. (void *)false;

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Douglas Bagnall 2021-05-27 15:39:19 +12:00 committed by Jeremy Allison
parent ef863de140
commit b54a24049f

View File

@ -1757,7 +1757,7 @@ static PyObject *py_smb_get_sd(struct py_cli_state *self, PyObject *args)
req = cli_query_security_descriptor_send(
NULL, self->ev, self->cli, fnum, sinfo);
if (!py_tevent_req_wait_exc(self, req)) {
return false;
return NULL;
}
status = cli_query_security_descriptor_recv(req, NULL, &sd);
PyErr_NTSTATUS_NOT_OK_RAISE(status);
@ -1790,7 +1790,7 @@ static PyObject *py_smb_set_sd(struct py_cli_state *self, PyObject *args)
req = cli_set_security_descriptor_send(
NULL, self->ev, self->cli, fnum, sinfo, sd);
if (!py_tevent_req_wait_exc(self, req)) {
return false;
return NULL;
}
status = cli_set_security_descriptor_recv(req);