1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source3/libads
Andreas Schneider dc18e2a222 s3:libads: Fix memory leaks in ads_create_machine_acct()
Indirect leak of 291 byte(s) in 2 object(s) allocated from:
    #0 0x7fd77b6dc03f in malloc (/lib64/libasan.so.8+0xdc03f) (BuildId: 3e1694ad218c99a8b1b69231666a27df63cf19d0)
    #1 0x7fd77b094bc2 in __talloc_with_prefix ../../lib/talloc/talloc.c:783
    #2 0x7fd77b096034 in __talloc ../../lib/talloc/talloc.c:825
    #3 0x7fd77b096034 in __talloc_strlendup ../../lib/talloc/talloc.c:2454
    #4 0x7fd77b096034 in talloc_strdup ../../lib/talloc/talloc.c:2470
    #5 0x7fd779996633 in add_string_to_array ../../lib/util/util_strlist.c:504
    #6 0x7fd77b10c754 in ads_create_machine_acct ../../source3/libads/ldap.c:2662
    #7 0x7fd77b46705f in libnet_join_precreate_machine_acct ../../source3/libnet/libnet_join.c:390
    #8 0x7fd77b46705f in libnet_DomainJoin ../../source3/libnet/libnet_join.c:2852
    #9 0x7fd77b46705f in libnet_Join ../../source3/libnet/libnet_join.c:3036
    #10 0x55fb9788d91a in net_ads_join ../../source3/utils/net_ads.c:1853
    #11 0x55fb9793ab86 in net_join ../../source3/utils/net_join.c:45
    #12 0x55fb9793084f in net_run_function ../../source3/utils/net_util.c:454
    #13 0x55fb97889859 in main ../../source3/utils/net.c:1372
    #14 0x7fd7768281af in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2024-01-23 13:23:33 +00:00
..
ads_ldap_protos.h
ads_proto.h s3-librpc: add ads.idl and convert ads_struct to talloc. 2022-12-16 20:38:32 +00:00
ads_status.c
ads_status.h
ads_struct.c s3: libads: Fix coverity false positive. 2022-07-04 16:42:28 +00:00
authdata.c libsmb: Make libsmb/clispnego.c static to libads/ 2023-09-25 19:01:34 +00:00
cldap.c s3-libads: Also handle the DS_WEB_SERVICE_REQUIRED flag in check_cldap_reply_required_flags() 2023-05-31 04:02:36 +00:00
cldap.h
disp_sec.c s3:libads: Allocate ads->config.config_path under ADS_STRUCT talloc context 2022-06-27 15:50:30 +00:00
kerberos_keytab.c s3:libads: Fix code spelling 2023-09-11 02:42:41 +00:00
kerberos_proto.h s3:libads: Return canonical principal and realm from kerberos_return_pac() 2022-02-23 15:20:32 +00:00
kerberos_util.c
kerberos.c s3:libads: Fix code spelling 2023-10-25 22:23:37 +00:00
krb5_setpw.c s3:libads: Add missing newlines to logging messages 2023-08-08 04:39:38 +00:00
ldap_printer.c
ldap_schema_oids.h
ldap_schema.c libads: Save intermediate NULL checks with talloc_asprintf_addbuf() 2022-12-14 05:29:51 +00:00
ldap_schema.h
ldap_user.c
ldap_utils.c s3:libads: Allocate ADS_STRUCT under a talloc context 2022-06-27 15:50:30 +00:00
ldap.c s3:libads: Fix memory leaks in ads_create_machine_acct() 2024-01-23 13:23:33 +00:00
net_ads_setspn.c
sasl_wrapping.c s3-librpc: add ads.idl and convert ads_struct to talloc. 2022-12-16 20:38:32 +00:00
sasl.c libsmb: Make libsmb/clispnego.c static to libads/ 2023-09-25 19:01:34 +00:00
sitename_cache.c s3:libads: Fix code spelling 2023-07-13 05:41:36 +00:00
sitename_cache.h
util.c s3:libads: Zero memory in ads_change_trust_account_password() 2022-08-26 07:59:32 +00:00