mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
fix uninitialised use of samctx
This commit is contained in:
parent
a6cc04a200
commit
ae1c2415e2
@ -53,6 +53,8 @@ static void nbtd_netlogon_getdc(struct dgram_mailslot_handler *dgmslot,
|
||||
return;
|
||||
}
|
||||
|
||||
samctx = iface->nbtsrv->sam_ctx;
|
||||
|
||||
if (lp_server_role(iface->nbtsrv->task->lp_ctx) != ROLE_DOMAIN_CONTROLLER
|
||||
|| !samdb_is_pdc(samctx)) {
|
||||
DEBUG(2, ("Not a PDC, so not processing LOGON_PRIMARY_QUERY\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user