1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source3/libsmb
Andreas Schneider 321ee914a4 s3:libsmb: Check if we have a valid file descriptor
"Error: REVERSE_NEGATIVE (CWE-191):
samba-4.20.0rc2/source3/libsmb/pylibsmb.c:215: negative_sink_in_call: Passing ""t->shutdown_pipe[1]"" to a parameter that cannot be negative.
samba-4.20.0rc2/source3/libsmb/pylibsmb.c:230: check_after_sink: You might be using variable ""t->shutdown_pipe[1]"" before verifying that it is >= 0.
  228|   		t->shutdown_pipe[0] = -1;
  229|   	}
  230|-> 	if (t->shutdown_pipe[1] != -1) {
  231|   		close(t->shutdown_pipe[1]);
  232|   		t->shutdown_pipe[1] = -1;"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
2024-06-30 23:20:34 +00:00
..
ABI libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
async_smb.c libcli: SMBntcreateX can return STOPPED_ON_SYMLINK 2023-11-01 18:55:32 +00:00
auth_generic.c s3:gse: Implement gensec_gse_security_by_oid() 2024-05-14 10:18:31 +00:00
cli_smb2_fnum.c libsmb: Use SMB2_0_INFO_ constants instead of magic numbers 2024-05-22 04:23:29 +00:00
cli_smb2_fnum.h libsmb: infer posix context from info_level 2023-10-31 04:38:42 +00:00
cliconnect.c lib: Use cli_credentials_add_gensec_features in a few places 2024-06-04 07:11:35 +00:00
clidfs.c s3:libsmb: Pass memory context to cli_connect_nb() 2024-04-29 08:43:32 +00:00
clidgram.c s3:libsmb/unexpected: pass nmbd_socket_dir from the callers of nb_packet_{server_create,reader_send}() 2024-04-05 12:24:41 +00:00
clidgram.h
clientgen.c s3:libsmb: Improve logging for failover scenarios 2023-10-18 14:43:37 +00:00
clierror.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
clifile.c libsmb: Use SMB2_0_INFO_ constants instead of magic numbers 2024-05-22 04:23:29 +00:00
clifsinfo.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
clilist.c libsmb: Remove a talloc_strdup() 2024-05-22 04:23:29 +00:00
climessage.c libsmb: Use tevent_req_nterror() properly 2023-08-22 16:45:31 +00:00
clioplock.c libsmb: Use tevent_req_oom() where appropriate 2023-08-22 16:45:31 +00:00
cliprint.c libsmb: Remove a call to SMBC_errno() 2023-09-25 19:01:34 +00:00
cliquota.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
clirap.c libsmb: Use SMB2_0_INFO_ constants instead of magic numbers 2024-05-22 04:23:29 +00:00
clirap.h libsmb: Convert cli_qfileinfo to use FSCC levels 2024-05-14 22:29:36 +00:00
clireadwrite.c libsmb: Remove "trans_oob()" macro 2021-11-11 19:08:37 +00:00
clisecdesc.c libsmb: Use SMB2_0_INFO_SECURITY instead of raw "3" 2024-06-04 07:11:35 +00:00
clisymlink.c libsmb: Pass "flags" through cli_close_send() and pylibsmb 2023-10-10 08:19:29 +00:00
clitrans.c
conncache.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
dsgetdcname.c s3:libsmb: allow store_cldap_reply() to work with a ipv6 response 2024-05-10 01:35:18 +00:00
dsgetdcname.h s3-dsgetdcname: add dsgetonedcname() 2021-07-14 16:49:30 +00:00
errormap_wbc.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
errormap_wbc.h
errormap.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
libsmb_cache.c libsmb: Make setting errno safer in SMBC_add_cached_server() 2023-04-18 14:58:36 +00:00
libsmb_compat.c libsmb: Slightly simplify smbc_init() 2023-04-18 14:58:36 +00:00
libsmb_context.c lib: Use cli_credentials_add_gensec_features in a few places 2024-06-04 07:11:35 +00:00
libsmb_dir.c libsmb: Remove file_info->[ug]id 2024-05-22 04:23:29 +00:00
libsmb_file.c Fix a few "might be uninitialized" errors 2024-04-23 19:02:10 +00:00
libsmb_misc.c libsmb: Remove SMBC_errno() 2023-09-25 19:01:34 +00:00
libsmb_path.c s3:libsmb: Add missing parenthesis to logging message 2023-08-08 04:39:38 +00:00
libsmb_printjob.c libsmb: Remove a call to SMBC_errno() 2023-09-25 19:01:34 +00:00
libsmb_server.c s3:libsmb: Pass memory context to cli_full_connection_creds() 2024-04-29 08:43:32 +00:00
libsmb_setget.c libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00
libsmb_stat.c libsmb: Remove unused setup_stat_from_stat_ex() 2024-04-30 22:44:32 +00:00
libsmb_thread_impl.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
libsmb_thread_posix.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
libsmb_xattr.c s3:libsmb_xattr: ace_compare() uses NUMERIC_CMP() 2024-04-10 23:58:12 +00:00
libsmb.h
namecache.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
namequery_dc.c s3:libsmb: make use of ads_connect_cldap_only() 2024-05-14 10:18:31 +00:00
namequery.c s3:libsmb: we no longer need libads/kerberos_proto.h in namequery.c 2024-06-06 20:25:36 +00:00
namequery.h lib: Move sockaddr_storage_to_samba_sockaddr() to lib/ 2021-01-11 13:19:32 +00:00
nmblib.c s3:libsmb:nmblib: use NUMERIC_CMP in status_compare 2024-04-23 01:33:29 +00:00
nmblib.h s3:libsmb/unexpected: pass nmbd_socket_dir from the callers of nb_packet_{server_create,reader_send}() 2024-04-05 12:24:41 +00:00
passchange.c s3:libsmb: Pass memory context to cli_connect_nb() 2024-04-29 08:43:32 +00:00
proto.h libsmb: Remove unused cli_list_trans() 2024-05-22 04:23:29 +00:00
pylibsmb.c s3:libsmb: Check if we have a valid file descriptor 2024-06-30 23:20:34 +00:00
samlogon_cache.c s3:winbind: Improve logging in samlogon_cache.c 2022-07-15 14:25:38 +00:00
samlogon_cache.h
smbclient.pc.in
smberr.c libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
smbsock_connect.c libsmb: Use tevent_req_nterror() properly 2023-08-22 16:45:31 +00:00
trusts_util.c s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
unexpected.c s3:libsmb/unexpected: pass nmbd_socket_dir from the callers of nb_packet_{server_create,reader_send}() 2024-04-05 12:24:41 +00:00
unexpected.h s3:libsmb/unexpected: pass nmbd_socket_dir from the callers of nb_packet_{server_create,reader_send}() 2024-04-05 12:24:41 +00:00
wscript libsmbclient: Add smbc_[gs]etOptionPosixExtensions() 2023-10-12 16:55:34 +00:00