diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-14 09:50:24 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-14 12:00:07 +0100 |
commit | 940f21e5c694cf441d6ab19fff87745f2c3a9172 (patch) | |
tree | 819114427174a57db6aacbc5193624db4e24c4a4 /source3/smbd | |
parent | e3e56e209fdb878d540c3f7041837a96fd5743f6 (diff) | |
download | samba-940f21e5c694cf441d6ab19fff87745f2c3a9172.tar.gz samba-940f21e5c694cf441d6ab19fff87745f2c3a9172.tar.bz2 samba-940f21e5c694cf441d6ab19fff87745f2c3a9172.zip |
s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULL
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/open.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index ee0ba082f8..265de27184 100644 --- 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 = - talloc_get_type(private_data, + talloc_get_type_abort(private_data, 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", |