summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-14 09:50:24 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-14 12:00:07 +0100
commit95384d11a3640e67712dd29939eceace80473203 (patch)
tree4db7e8f62cca79c321467024e4d352b95b2d4090 /source3/smbd
parent500d703977ab7ec2f617ca0f88ed979a7115be36 (diff)
downloadsamba-95384d11a3640e67712dd29939eceace80473203.tar.gz
samba-95384d11a3640e67712dd29939eceace80473203.tar.bz2
samba-95384d11a3640e67712dd29939eceace80473203.zip
s3:smbd/close: use talloc_get_type_abort() as private_data can't be NULL
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 09d8905c17..9eedaf9e66 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -1137,13 +1137,9 @@ void msg_close_file(struct messaging_context *msg_ctx,
files_struct *fsp = NULL;
struct share_mode_entry e;
struct smbd_server_connection *sconn =
- talloc_get_type(private_data,
+ talloc_get_type_abort(private_data,
struct smbd_server_connection);
- if (sconn == NULL) {
- return;
- }
-
message_to_share_mode_entry(&e, (char *)data->data);
if(DEBUGLVL(10)) {