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:
parent
ef863de140
commit
b54a24049f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user