1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/libsmb
Jeremy Allison 6c28d71511 s3: libsmb: Cleanup - correctly error on sockaddr_storage_to_samba_sockaddr() fail.
Instead of jumping out and leaking the memory onto ctx,
skip bad conversions and error out if there are no addresses
to return (and cleanup the memory there).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
2020-09-07 13:23:40 +00:00
..
ABI s3:libsmb: Use cli_credentials_set_smb_encryption() 2020-08-19 16:22:42 +00:00
async_smb.c
auth_generic.c
cli_smb2_fnum.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
cli_smb2_fnum.h libsmb: Remove unused cli_smb2_qfileinfo_basic() 2020-06-04 18:36:17 +00:00
cliconnect.c s3: libsmb: Cleanup - ensure we initialize all stack variables to 'safe' values when calling resolve_name_list() 2020-09-07 13:23:39 +00:00
clidfs.c s3:libsmb: Make cli_cm_force_encryption_creds() static 2020-08-19 16:22:43 +00:00
clidgram.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
clidgram.h libsmb: Pass "account_name/flags" through nb_getdc 2018-04-11 01:06:39 +02:00
clientgen.c s3:libsmb: remove finally unused credential flags 2020-05-28 08:04:12 +00:00
clierror.c libsmb: Remove unused cli_errstr() 2020-05-25 08:13:28 +00:00
clifile.c libsmb: Remove unused sync version of cli_getattrE() 2020-06-04 17:11:39 +00:00
clifsinfo.c libsmb: Remove clistr_pull_talloc() 2020-05-28 19:11:38 +00:00
clilist.c s3: libsmb: Make cli_list_trans() and cli_list take a 32-bit attribute. 2020-06-04 17:11:38 +00:00
climessage.c s3/libsmb: clang: Fix 'Value stored to 'p' is never read' 2019-10-22 17:28:27 +00:00
clioplock.c libsmb: Use cli_lockingx() in cli_oplock_ack() 2019-06-18 12:53:59 +00:00
cliprint.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
cliquota.c s3/libsmb: clang: Fix 'Value stored during initialization is never read' 2019-08-28 03:06:42 +00:00
clirap.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
clirap.h libsmb: Add async cli_qfileinfo_basic 2020-06-04 17:11:39 +00:00
clireadwrite.c s3/libsmb: clang: Fix 'warning: Assigned value is garbage or undefined ' 2019-08-28 00:22:49 +00:00
clisecdesc.c s3:libsmb: add cli_query_mxac() 2019-03-04 18:11:17 +00:00
clispnego.c CVE-2020-10704: lib util asn1: Add ASN.1 max tree depth 2020-05-04 02:59:31 +00:00
clistr.c libsmb: Remove clistr_pull_talloc() 2020-05-28 19:11:38 +00:00
clisymlink.c s3:libsmb: pass impersonation_level to cli_ntcreate_send() 2018-12-13 08:52:24 +01:00
clitrans.c libsmb: Make cli_trans_send cancellable 2018-11-21 16:53:41 +01:00
conncache.c lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
dsgetdcname.c s3: libsmb: discover_dc_netbios(). Remember to free on error return. 2020-09-07 13:23:39 +00:00
dsgetdcname.h
errormap_wbc.c
errormap_wbc.h
errormap.c lib: Align integer types 2020-01-19 18:29:39 +00:00
libsmb_cache.c
libsmb_compat.c s3: libsmb: Added new API smbc_readdirplus2() 2019-10-30 20:44:31 +00:00
libsmb_context.c s3:libsmb: Use cli_credentials_set_smb_encryption() 2020-08-19 16:22:42 +00:00
libsmb_dir.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
libsmb_file.c libsmb: Remove cli_getattrE() fallback from cli_qfileinfo_basic() users 2020-06-04 17:11:39 +00:00
libsmb_misc.c libsmb: Make SMBC_dlist_contains return bool 2020-05-25 08:13:27 +00:00
libsmb_path.c Spelling fixes s/wont /won't / 2019-09-01 22:21:27 +00:00
libsmb_printjob.c
libsmb_server.c s3:libsmb: Use cli_credentials_set_smb_encryption() 2020-08-19 16:22:42 +00:00
libsmb_setget.c s3: libsmb: Added new API smbc_readdirplus2() 2019-10-30 20:44:31 +00:00
libsmb_stat.c lib/util: Standardize use of st_[acm]time ns 2020-08-15 08:51:09 +00:00
libsmb_thread_impl.c
libsmb_thread_posix.c
libsmb_xattr.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
libsmb.h
namecache.c s3: libsmb: Namecache. Fix bug missed by me in previous cleanup. 2020-07-17 05:54:29 +00:00
namequery_dc.c s3: libsmb: Cleanup - ensure we initialize all stack variables to 'safe' values when calling get_sorted_dc_list() that may not touch returns on error. 2020-09-07 13:23:39 +00:00
namequery.c s3: libsmb: Cleanup - correctly error on sockaddr_storage_to_samba_sockaddr() fail. 2020-09-07 13:23:40 +00:00
namequery.h s3: libsmb: Change dns_lookup_list_async() and associated functions to return a struct samba_sockaddr * array. 2020-08-07 06:34:37 +00:00
nmblib.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
nmblib.h s3:libsmb: move cli_set_message() to source3/libsmb/nmblib.c 2020-02-26 19:45:36 +00:00
passchange.c s3:smbpasswd: Print debug message about Netbios 2019-01-09 18:40:44 +01:00
proto.h s3:libsmb: Make cli_cm_force_encryption_creds() static 2020-08-19 16:22:43 +00:00
pylibsmb.c s3:libsmb: Remove signing_state from cli_full_connection_creds_send() 2020-08-19 16:22:42 +00:00
reparse_symlink.c libsmb: Add overflow protection to symlink_reparse_buffer_marshall() 2020-06-15 17:59:39 +00:00
samlogon_cache.c lib:util: Move discard_const(_p) to own header for libndr.h 2019-02-14 15:59:26 +01:00
samlogon_cache.h
smbclient.pc.in
smberr.c
smbsock_connect.c s3/libsmb: clang: Fix 'Assigned value is garbage or undefined' 2019-10-22 17:28:27 +00:00
trusts_util.c s3/libsmb: clang: value stored to 'idx_current' is never read 2019-09-26 18:41:28 +00:00
unexpected.c
unexpected.h
wscript s3:libsmb: Use cli_credentials_set_smb_encryption() 2020-08-19 16:22:42 +00:00