nbt_server: Factor out packet generation for netlogon reply
authorVolker Lendecke <vl@samba.org>
Sat, 17 Feb 2018 20:02:41 +0000 (21:02 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 27 Feb 2018 13:10:14 +0000 (14:10 +0100)
commit4da56e9f049c5aaa9e5573786cc5c490cfbfac96
tree3c02321e851dcb77c54c761c7ac4b3ec87954b6f
parent39827b7582932baa9d71390096204e5f2f5afb3d
nbt_server: Factor out packet generation for netlogon reply

This also fixes an inaccuracy (or even a bug?):
The previous code pulled the reply mailslot always through
req.logon.mailslot_name, which is the union for
LOGON_SAM_LOGON_REQUESTs. The LOGON_PRIMARY_QUERY must be referenced by
req.pdc.mailslot_name. It might have worked by chance, but this should
be more correct.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Feb 27 14:10:14 CET 2018 on sn-devel-144
source4/nbt_server/dgram/netlogon.c