1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/param
Noel Power 9e84f1e576 s4/param: treat NULL value passed to dict_insert as error
insert_dict is used as a convenience to decrement the values to
prevent leaks with orpahaned PyObjects and avoid excessive creation of
temp variables.

        if (!dict_insert(parameters,
                         "rootdn",
                         PyUnicode_FromString(settings->root_dn_str))) {
                status = NT_STATUS_UNSUCCESSFUL;
                goto out;
        }

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-03-19 20:46:42 +00:00
..
tests Avoid including libds/common/roles.h in public loadparm.h header. 2016-01-13 04:43:23 +01:00
loadparm.c libcli/smb: add max_credits arg to smbXcli_negprot_send() 2017-03-03 21:55:27 +01:00
provision.c s4/param: treat NULL value passed to dict_insert as error 2020-03-19 20:46:42 +00:00
provision.h s4-provision: pass use_ntvfs from C wrappers and set to true in tests/vampire 2012-08-22 01:31:57 +02:00
pyparam_util.c py3: Remove duplicated PyUnicode_Check() after the py3 compat macros were removed 2019-06-24 18:48:53 +00:00
pyparam.c Spelling fixes s/tempates/templates/ 2019-09-01 22:21:25 +00:00
pyparam.h
secrets.c s4:param: make sure secrets_db_connect() no longer creates on empty secrets.ldb 2020-02-05 10:13:02 +00:00
secrets.h s4:param: add secrets_db_create() helper function 2020-02-05 08:46:39 +00:00
share_classic.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share_ldb.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share.h s4: pass down a memory context when performing share_string_option, to allow substitutions 2014-02-20 10:11:00 +13:00
wscript_build build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00