diff options
author | Andreas Schneider <asn@samba.org> | 2018-11-12 18:27:44 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-11-14 11:46:06 +0100 |
commit | 4a272b83af6958a436821daacaa3876dd991e6ba (patch) | |
tree | 42f6885026405de3776d447dba7fc4d62998b1dd /source3/passdb | |
parent | 2a6e7f3a5f76a74464161666b38c35e3f9aa1386 (diff) | |
download | samba-4a272b83af6958a436821daacaa3876dd991e6ba.tar.gz |
s3:passdb: Use discard_const_p() in py_passdb
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 14 11:46:06 CET 2018 on sn-devel-144
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/py_passdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 1bcf3f667ec..3d8012f2c06 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -3081,10 +3081,10 @@ static PyObject *py_pdb_set_trusted_domain(PyObject *self, PyObject *args) } py_tmp = PyDict_GetItemString(py_td_info, "domain_name"); - td_info.domain_name = PyStr_AsString(py_tmp); + td_info.domain_name = discard_const_p(char, PyStr_AsString(py_tmp)); py_tmp = PyDict_GetItemString(py_td_info, "netbios_name"); - td_info.netbios_name = PyStr_AsString(py_tmp); + td_info.netbios_name = discard_const_p(char, PyStr_AsString(py_tmp)); py_tmp = PyDict_GetItemString(py_td_info, "security_identifier"); td_info.security_identifier = *pytalloc_get_type(py_tmp, struct dom_sid); |