mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +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_dgram_packet *dgram,
|
||||||
struct nbt_netlogon_packet *netlogon);
|
struct nbt_netlogon_packet *netlogon);
|
||||||
|
|
||||||
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot,
|
NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
|
||||||
TALLOC_CTX *mem_ctx,
|
|
||||||
struct nbt_dgram_packet *dgram,
|
struct nbt_dgram_packet *dgram,
|
||||||
struct nbt_netlogon_response *netlogon);
|
struct nbt_netlogon_response *netlogon);
|
||||||
|
|
||||||
|
@ -123,8 +123,7 @@ NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx,
|
|||||||
/*
|
/*
|
||||||
parse a netlogon response. The packet must be a valid mailslot packet
|
parse a netlogon response. The packet must be a valid mailslot packet
|
||||||
*/
|
*/
|
||||||
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot,
|
NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
|
||||||
TALLOC_CTX *mem_ctx,
|
|
||||||
struct nbt_dgram_packet *dgram,
|
struct nbt_dgram_packet *dgram,
|
||||||
struct nbt_netlogon_response *netlogon)
|
struct nbt_netlogon_response *netlogon)
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ static void getdc_recv_netlogon_reply(struct dgram_mailslot_handler *dgmslot,
|
|||||||
struct nbt_netlogon_response netlogon;
|
struct nbt_netlogon_response netlogon;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
status = dgram_mailslot_netlogon_parse_response(dgmslot, packet, packet,
|
status = dgram_mailslot_netlogon_parse_response(packet, packet,
|
||||||
&netlogon);
|
&netlogon);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
DEBUG(5, ("dgram_mailslot_ntlogon_parse failed: %s\n",
|
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);
|
printf("netlogon reply from %s:%d\n", src->addr, src->port);
|
||||||
|
|
||||||
/* Fills in the netlogon pointer */
|
/* 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)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
printf("Failed to parse netlogon packet from %s:%d\n",
|
printf("Failed to parse netlogon packet from %s:%d\n",
|
||||||
src->addr, src->port);
|
src->addr, src->port);
|
||||||
|
Loading…
Reference in New Issue
Block a user