mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:smbd/blocking: use talloc_get_type_abort() as private_data can't be NULL
metze
This commit is contained in:
parent
ef45279f5e
commit
500d703977
@ -703,13 +703,9 @@ static void received_unlock_msg(struct messaging_context *msg,
|
||||
DATA_BLOB *data)
|
||||
{
|
||||
struct smbd_server_connection *sconn =
|
||||
talloc_get_type(private_data,
|
||||
talloc_get_type_abort(private_data,
|
||||
struct smbd_server_connection);
|
||||
|
||||
if (sconn == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG(10,("received_unlock_msg\n"));
|
||||
process_blocking_lock_queue(sconn);
|
||||
}
|
||||
@ -832,13 +828,9 @@ static void process_blocking_lock_cancel_message(struct messaging_context *ctx,
|
||||
const char *msg = (const char *)data->data;
|
||||
struct blocking_lock_record *blr;
|
||||
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) {
|
||||
smb_panic("process_blocking_lock_cancel_message: null msg");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user