mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
libdgram: Remove an unused parameter
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
92580b3f2f
commit
5ec14fd981
@ -131,8 +131,7 @@ NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx,
|
||||
struct nbt_dgram_packet *dgram,
|
||||
struct nbt_netlogon_packet *netlogon);
|
||||
|
||||
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
|
||||
struct nbt_dgram_packet *dgram,
|
||||
struct nbt_netlogon_response *netlogon);
|
||||
|
||||
|
@ -123,10 +123,9 @@ NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx,
|
||||
/*
|
||||
parse a netlogon response. The packet must be a valid mailslot packet
|
||||
*/
|
||||
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct nbt_dgram_packet *dgram,
|
||||
struct nbt_netlogon_response *netlogon)
|
||||
NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
|
||||
struct nbt_dgram_packet *dgram,
|
||||
struct nbt_netlogon_response *netlogon)
|
||||
{
|
||||
NTSTATUS status;
|
||||
DATA_BLOB data = dgram_mailslot_data(dgram);
|
||||
|
@ -70,7 +70,7 @@ static void getdc_recv_netlogon_reply(struct dgram_mailslot_handler *dgmslot,
|
||||
struct nbt_netlogon_response netlogon;
|
||||
NTSTATUS status;
|
||||
|
||||
status = dgram_mailslot_netlogon_parse_response(dgmslot, packet, packet,
|
||||
status = dgram_mailslot_netlogon_parse_response(packet, packet,
|
||||
&netlogon);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(5, ("dgram_mailslot_ntlogon_parse failed: %s\n",
|
||||
|
@ -51,7 +51,8 @@ static void netlogon_handler(struct dgram_mailslot_handler *dgmslot,
|
||||
printf("netlogon reply from %s:%d\n", src->addr, src->port);
|
||||
|
||||
/* Fills in the netlogon pointer */
|
||||
status = dgram_mailslot_netlogon_parse_response(dgmslot, netlogon, packet, netlogon);
|
||||
status = dgram_mailslot_netlogon_parse_response(netlogon, packet,
|
||||
netlogon);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("Failed to parse netlogon packet from %s:%d\n",
|
||||
src->addr, src->port);
|
||||
|
Loading…
Reference in New Issue
Block a user