mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
smbd: Slightly simplify notifyd_send_delete()
Call messaging_send_iov() instead of messaging_send_iov_from(). Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
190ae0796e
commit
316579b502
@ -790,7 +790,7 @@ static void notifyd_send_delete(struct messaging_context *msg_ctx,
|
||||
};
|
||||
uint8_t nul = 0;
|
||||
struct iovec iov[3];
|
||||
int ret;
|
||||
NTSTATUS status;
|
||||
|
||||
/*
|
||||
* Send a rec_change to ourselves to delete a dead entry
|
||||
@ -802,13 +802,17 @@ static void notifyd_send_delete(struct messaging_context *msg_ctx,
|
||||
iov[1] = (struct iovec) { .iov_base = key.dptr, .iov_len = key.dsize };
|
||||
iov[2] = (struct iovec) { .iov_base = &nul, .iov_len = sizeof(nul) };
|
||||
|
||||
ret = messaging_send_iov_from(
|
||||
msg_ctx, instance->client, messaging_server_id(msg_ctx),
|
||||
MSG_SMB_NOTIFY_REC_CHANGE, iov, ARRAY_SIZE(iov), NULL, 0);
|
||||
status = messaging_send_iov(msg_ctx,
|
||||
instance->client,
|
||||
MSG_SMB_NOTIFY_REC_CHANGE,
|
||||
iov,
|
||||
ARRAY_SIZE(iov),
|
||||
NULL,
|
||||
0);
|
||||
|
||||
if (ret != 0) {
|
||||
DBG_WARNING("messaging_send_iov_from returned %s\n",
|
||||
strerror(ret));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DBG_WARNING("messaging_send_iov failed: %s\n",
|
||||
nt_errstr(status));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user