git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3e56e2
)
s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULL
author
Stefan Metzmacher
<metze@samba.org>
Wed, 14 Dec 2011 08:50:24 +0000
(09:50 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 14 Dec 2011 11:00:07 +0000
(12:00 +0100)
metze
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index ee0ba082f88aa539786cc1d0dbcc4fd34ff944e0..265de2718488f5ad7553cc436fc667f256863222 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-3002,13
+3002,9
@@
void msg_file_was_renamed(struct messaging_context *msg,
size_t sp_len, bn_len;
NTSTATUS status;
struct smbd_server_connection *sconn =
size_t sp_len, bn_len;
NTSTATUS status;
struct smbd_server_connection *sconn =
- talloc_get_type(private_data,
+ talloc_get_type
_abort
(private_data,
struct smbd_server_connection);
struct smbd_server_connection);
- if (sconn == NULL) {
- return;
- }
-
if (data->data == NULL
|| data->length < MSG_FILE_RENAMED_MIN_SIZE + 2) {
DEBUG(0, ("msg_file_was_renamed: Got invalid msg len %d\n",
if (data->data == NULL
|| data->length < MSG_FILE_RENAMED_MIN_SIZE + 2) {
DEBUG(0, ("msg_file_was_renamed: Got invalid msg len %d\n",