1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/smbd
Volker Lendecke 34c24c20c9 s3: Fix Coverity ID 703869 Logically dead code
We "TALLOC_FREE(curr)" and assign prev=curr in the for-loop header.
This will lead to "prev"==NULL always. In this loop, we do not need
to correctly re-shuffle the linked list, we delete all from the
beginning anyway.

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 11 17:26:53 CEST 2012 on sn-devel-104
2012-06-11 17:26:53 +02:00
..
aio.c build: Rationalise AIO support in configure, ensure on by default 2012-06-06 08:23:10 +02:00
avahi_register.c s3-param Remove special case for global_myname(), rename to lp_netbios_name() 2011-06-09 12:40:09 +02:00
blocking.c s3: Replace chain_reply 2012-03-10 15:34:11 +01:00
close.c s3:smbd/close: call del_share_mode() directly before TALLOC_FREE(lck) 2012-06-03 21:08:19 +02:00
conn_idle.c s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum() 2012-06-06 10:18:41 +02:00
conn_msg.c s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULL 2011-12-14 12:00:07 +01:00
conn.c s3:include: change connection_struct->cnum to uint32_t 2012-06-06 19:37:14 +02:00
connection.c s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid 2012-06-06 19:37:14 +02:00
dfree.c s3:vfs_gpfs: Export disk_norm function 2012-03-22 18:41:22 +01:00
dir.c build: Remove SMB_OFF_T, replace with off_t 2012-04-06 01:47:43 +02:00
dmapi.c s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc() 2011-06-09 12:40:08 +02:00
dnsregister.c s3: include smbd/smbd.h where needed. 2011-03-30 01:13:08 +02:00
dosmode.c s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCH 2011-04-29 16:38:13 +10:00
error.c s3-smbd: Avoid starting log lines with the word 'error' 2012-02-16 15:21:11 +11:00
fake_file.c s3:smbd: let open_fake_file() take a uint64_t vuid 2012-06-06 10:18:40 +02:00
file_access.c Based on code from Richard Sharpe <realrichardsharpe@gmail.com>, 2012-03-29 08:53:43 -07:00
fileio.c s3:smbd: remove unnecessary variable readret from read_file() 2012-06-08 18:08:08 +02:00
filename.c s3:smbd/msdfs: pass allow_broken_path to resolve_dfspath_wcard() 2012-05-24 16:14:01 +02:00
files.c Revert "s3:smbd: set req->smb2req->compat_chain_fsp in file_fsp()" 2012-06-10 18:04:21 +02:00
globals.c build: Rationalise AIO support in configure, ensure on by default 2012-06-06 08:23:10 +02:00
globals.h s3:smbd: change user_struct->vuid to uint64_t 2012-06-06 12:07:33 +02:00
ipc.c s3:smbd: pass down vuid as uint64_t in ipc.c 2012-06-06 10:18:41 +02:00
lanman.c s3:smbd: pass down vuid as uint64_t in lanman.c 2012-06-06 10:18:41 +02:00
mangle_hash2.c First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems 2011-07-19 13:19:29 -07:00
mangle_hash.c First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems 2011-07-19 13:19:29 -07:00
mangle.c s3: include smbd/smbd.h where needed. 2011-03-30 01:13:08 +02:00
message.c s3:smbd: move global smbd_msg_state to smbXsrv_connection 2012-05-25 11:01:27 +02:00
msdfs.c s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid 2012-06-06 19:37:14 +02:00
negprot.c s3-smbd: Remove unused branches in negprot since security=share was removed 2012-06-11 11:44:07 +02:00
noquotas.c s3: include smbd/smbd.h where needed. 2011-03-30 01:13:08 +02:00
notify_inotify.c rely on sys/inotify.h for inotify 2012-04-13 21:15:00 +02:00
notify_internal.c s3:smbd fix some compiler warnings 2012-05-08 22:37:05 +02:00
notify.c s3:smbd: make struct notify_change_buf private to notify.c 2012-06-06 10:18:37 +02:00
ntquotas.c lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent. 2012-03-24 15:23:02 +01:00
nttrans.c s3:smbd: make use of change_notify_fsp_has_changes() 2012-06-06 10:18:37 +02:00
open.c s3: fix build on systems without O_NOFOLLOW 2012-06-10 21:38:08 +02:00
oplock_irix.c build: Remove sys_open wrapper 2012-04-05 02:39:08 +02:00
oplock_linux.c s3:smbd/oplock_linux: don't overwrite private_data 2012-02-10 21:48:18 +01:00
oplock.c s3:smbd: change set_file_oplock() to return NTSTATUS 2012-06-08 23:20:20 +02:00
password.c s3:smbd: change user_struct->vuid to uint64_t 2012-06-06 12:07:33 +02:00
perfcount.c Fix many const compiler warnings. 2011-05-05 10:41:59 -07:00
pipes.c s3:smbd: fix reply_open_pipe_and_X() to behave like windows (2008 R2) 2012-05-28 19:51:59 +02:00
posix_acls.c s3-smbd: Avoid creating a UID ACL entry for SIDs that are mapped as ID_TYPE_BOTH The GID ACL entry is what will be mapped in most cases, and so is sufficient. 2012-05-17 05:08:44 +02:00
process.c s3:smbd: readd START_PROFILE(smbd_idle)/END_PROFILE(smbd_idle) 2012-06-09 12:09:17 +02:00
proto.h s3:smbd: add file_fsp_smb2() 2012-06-09 21:23:44 +02:00
pysmbd.c s3-python: Add python bindings for posix ACL layer 2012-05-08 04:51:59 +02:00
quotas.c build: Remove sys_fopen wrapper 2012-04-05 02:39:08 +02:00
reply.c s3:include: change smb_request->vuid to uint64_t 2012-06-06 10:18:40 +02:00
seal.c libcli/smb: Convert struct smb_trans_enc_state to talloc 2012-01-31 20:17:10 +01:00
sec_ctx.c First part of fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled. 2012-04-04 14:58:42 -07:00
server_exit.c s3:smbd: make conn_close_all() a void function 2012-06-03 21:33:10 +02:00
server_reload.c Forward port of Richard Sharpe's <realrichardsharpe@gmail.com> fix for bug #8970 - Possible memory leaks in the samba master process. 2012-05-31 16:08:44 -07:00
server.c s3:lib: split things into a conn_tdb.h 2012-06-05 19:28:35 +02:00
service.c s3:smbd: let close_cnum() take a uint64_t vuid 2012-06-06 10:18:41 +02:00
session.c s3:smbd: change user_struct->vuid to uint64_t 2012-06-06 12:07:33 +02:00
sesssetup.c s3:smbd: change user_struct->vuid to uint64_t 2012-06-06 12:07:33 +02:00
share_access.c s3-auth: smbd needs auth.h 2011-03-30 01:13:09 +02:00
signing.c s3:smbd/signing: use smbd_server_connection as talloc parent for its smb1 signing state 2012-05-25 00:23:53 +02:00
smb2_break.c s3:smb2_break: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_close.c s3:smb2_close: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_create.c s3:smb2_create: do not remove leading backslash from pipe names 2012-05-28 19:51:57 +02:00
smb2_find.c s3:smb2_find: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_flush.c s3:smb2_flush: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_getinfo.c s3: Fix Coverity ID 709049 Dereference before null check 2012-06-11 15:30:54 +02:00
smb2_glue.c s3: include smbd/smbd.h where needed. 2011-03-30 01:13:08 +02:00
smb2_ioctl.c s3:smb2_ioctl: make use of file_fsp_smb2() 2012-06-10 01:10:14 +02:00
smb2_keepalive.c s3:smb2_server: use smbd_smb2_request_verify_sizes() in smb2_keepalive.c 2011-09-07 10:38:06 +02:00
smb2_lock.c s3:smb2_lock: make use of file_fsp_smb2() 2012-06-09 21:23:45 +02:00
smb2_negprot.c s3:smbd: introduce struct smbXsrv_connection 2012-05-12 01:01:34 +02:00
smb2_notify.c s3:smb2_notify: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_read.c s3:smb2_read: make use of file_fsp_smb2() 2012-06-09 21:23:45 +02:00
smb2_server.c s3:smb2_server: fix a compiler warning 2012-03-14 16:06:48 +01:00
smb2_sesssetup.c s3:smbd: change user_struct->vuid to uint64_t 2012-06-06 12:07:33 +02:00
smb2_setinfo.c s3:smb2_setinfo: make use of file_fsp_smb2() 2012-06-09 21:23:44 +02:00
smb2_tcon.c s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct' 2012-06-06 10:18:39 +02:00
smb2_write.c s3:smb2_write: make use of file_fsp_smb2() 2012-06-09 21:23:45 +02:00
smbd.h s3:smbd: change trans_state->vuid to uint64_t 2012-06-06 10:18:40 +02:00
srvstr.c s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc() 2011-06-09 12:40:08 +02:00
statcache.c Second part of fix for bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share. 2011-10-22 04:57:10 +02:00
statvfs.c s3: Improve statvfs support 2012-03-11 14:18:04 +01:00
trans2.c s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl() 2012-06-06 10:18:37 +02:00
uid.c s3:smbd: change vuid to uint64_t in uid.c 2012-06-06 10:18:41 +02:00
utmp.c lib/util: Remove obsolete sys_getpid() and sys_fork(). 2012-03-24 21:55:40 +01:00
vfs.c s3: Fix Coverity ID 703869 Logically dead code 2012-06-11 17:26:53 +02:00