summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-06-01 13:42:51 +1000
committerAndrew Tridgell <tridge@samba.org>2009-06-01 13:42:51 +1000
commitae1c2415e23b56db7ffb8dc96425a8588401b03d (patch)
tree8ceedf35f2b70beca467341047edd28b8d536b48
parenta6cc04a20089e8fbcce138c271961c37ddcd6c34 (diff)
downloadsamba-ae1c2415e23b56db7ffb8dc96425a8588401b03d.tar.gz
samba-ae1c2415e23b56db7ffb8dc96425a8588401b03d.tar.bz2
samba-ae1c2415e23b56db7ffb8dc96425a8588401b03d.zip
fix uninitialised use of samctx
-rw-r--r--source4/nbt_server/dgram/netlogon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/nbt_server/dgram/netlogon.c b/source4/nbt_server/dgram/netlogon.c
index 2ed37fde59..8fec15a675 100644
--- a/source4/nbt_server/dgram/netlogon.c
+++ b/source4/nbt_server/dgram/netlogon.c
@@ -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"));