1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULL

metze
This commit is contained in:
Stefan Metzmacher 2011-12-14 09:50:24 +01:00
parent e3e56e209f
commit 940f21e5c6

View File

@ -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",