1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/include
Volker Lendecke ab41b3612a lib: Change ADD_TO_ARRAY to use a tmp variable
This should fix a few Coverity Resource Leak findings. Coverity does
not understand that SMB_ASSERT aborts the program, so it believes if
realloc fails we leak the previous allocation. Those are false
positives, but doing it this way does not cost much.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2024-10-02 13:12:30 +00:00
..
ads.h s3:libads: add ads_set_reconnect_fn() and only reconnect if we can get creds 2024-05-14 10:18:31 +00:00
adt_tree.h lib: Whitespace fixes 2022-10-27 18:18:36 +00:00
async_smb.h
auth_generic.h
auth.h
client.h libsmb: Remove cli_state->rap_error 2024-08-21 12:49:45 +00:00
ctdb_srvids.h
ctdbd_conn.h s3:ctdbd_conn: add ctdbd_all_ip_foreach() helper 2024-01-26 17:00:32 +00:00
fake_file.h smbd: Remove unused FAKE_FILE_TYPE_NAMED_PIPE enum 2023-11-01 18:55:32 +00:00
fstring.h s3:include: split out fstring.h 2024-04-05 12:24:41 +00:00
g_lock.h s3:g_lock: add callback function to g_lock_lock() 2022-09-20 00:34:35 +00:00
idmap_autorid_tdb.h s3:include: Fix code spelling 2023-07-05 07:32:15 +00:00
idmap.h s3:include: Fix code spelling 2023-07-05 07:32:15 +00:00
includes.h libsmb: Execute a "TODO", remove IVAL2_TO_SMB_BIG_UINT 2024-05-22 04:23:29 +00:00
intl.h
libsmb_internal.h libsmb: Remove unused setup_stat_from_stat_ex() 2024-04-30 22:44:32 +00:00
libsmbclient.h libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
local.h s3:include: Fix code spelling 2023-07-05 07:32:15 +00:00
locking.h s3: smbd: Add "enum brl_flavour" to struct smbd_lock_element. 2022-01-06 15:11:38 +00:00
lsa.h
MacExtensions.h s3:include: Fix code spelling 2023-07-13 05:41:36 +00:00
mangle.h
messages.h lib: Add libcli/util/ntstatus.h in a few headers where it's needed 2024-08-27 07:19:32 +00:00
msdfs.h s3: smbd: Remove definition of struct dfs_path. 2022-08-12 18:19:30 +00:00
nameserv.h s3:include: let nameserv.h be useable on its own 2024-04-05 12:24:41 +00:00
nss_info.h
nt_printing.h printing: Fix a typo 2021-03-16 17:09:31 +00:00
ntdomain.h
ntioctl.h lib: Move IO_REPARSE_TAG_NFS subtypes to toplevel 2023-07-03 19:40:35 +00:00
ntquotas.h
passdb.h s3:include: Fix code spelling 2023-07-05 07:32:15 +00:00
printing.h printing: Move rap2jobid functions to their own file 2021-03-16 17:09:31 +00:00
proto.h lib: Remove "token" parameter from set_namearray 2024-07-31 08:39:29 +00:00
registry.h
rpc_dce.h
rpc_misc.h
secrets.h s3: Sync machine account password in secrets_{prepare,finish}_password_change 2024-07-26 17:12:36 +00:00
serverid.h
session.h s3:lib: let sessionid_traverse_read() report if the session was authenticated 2024-05-23 12:35:37 +00:00
smb_acls.h s3: lib: sysacls: Remove all implementations of sys_acl_set_file(). 2021-06-09 13:14:31 +00:00
smb_krb5.h
smb_ldap.h
smb_macros.h lib: Change ADD_TO_ARRAY to use a tmp variable 2024-10-02 13:12:30 +00:00
smb.h s3: smbd: smb2-posix: Add SAMBA_XATTR_REPARSE_ATTRIB "user.SmbReparse" name. 2024-05-06 20:55:37 +00:00
smbldap.h
smbprofile.h profiling: Factor out functions to read smbprofile.tdb 2023-06-16 16:14:30 +00:00
srvstr.h
stamp-h.in
sysquotas.h
tldap_util.h
tldap.h s3:tldap: add support for [START]TLS 2024-04-23 23:50:34 +00:00
trans2.h smbd: Implement SMB2_FS_POSIX_INFORMATION_INTERNAL 2022-11-29 10:26:37 +00:00
transfer_file.h
util_event.h
util_sd.h
util_tdb.h lib: Add tdb_data_dbg() 2023-01-10 00:28:37 +00:00
vfs_macros.h s3:vfs: add vfs_rename_how to SMB_VFS_RENAMEAT() 2024-08-21 08:02:30 +00:00
vfs.h s3:vfs: add VFS_RENAME_HOW_NO_REPLACE 2024-08-21 08:02:30 +00:00