mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
s3:smbd/close: use talloc_get_type_abort() as private_data can't be NULL
metze
This commit is contained in:
parent
500d703977
commit
95384d11a3
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user