svn commit: samba r10727 - in branches/tmp/samba4-winsrepl/source/nbt_server: .

metze at samba.org metze at samba.org
Wed Oct 5 12:11:06 GMT 2005


Author: metze
Date: 2005-10-05 12:11:05 +0000 (Wed, 05 Oct 2005)
New Revision: 10727

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10727

Log:
fix the build

metze
Modified:
   branches/tmp/samba4-winsrepl/source/nbt_server/defense.c
   branches/tmp/samba4-winsrepl/source/nbt_server/irpc.c


Changeset:
Modified: branches/tmp/samba4-winsrepl/source/nbt_server/defense.c
===================================================================
--- branches/tmp/samba4-winsrepl/source/nbt_server/defense.c	2005-10-05 06:32:00 UTC (rev 10726)
+++ branches/tmp/samba4-winsrepl/source/nbt_server/defense.c	2005-10-05 12:11:05 UTC (rev 10727)
@@ -57,7 +57,7 @@
 
 	iname = nbtd_find_iname(iface, name, NBT_NM_ACTIVE);
 	if (iname != NULL && 
-	    !IS_GROUP_NAME(name, iname->nb_flags)) {
+	    !(name->type == NBT_NAME_LOGON || iname->nb_flags & NBT_NM_GROUP)) {
 		DEBUG(2,("Defending name %s on %s against %s\n",
 			 nbt_name_string(packet, name), 
 			 iface->bcast_address, src->addr));

Modified: branches/tmp/samba4-winsrepl/source/nbt_server/irpc.c
===================================================================
--- branches/tmp/samba4-winsrepl/source/nbt_server/irpc.c	2005-10-05 06:32:00 UTC (rev 10726)
+++ branches/tmp/samba4-winsrepl/source/nbt_server/irpc.c	2005-10-05 12:11:05 UTC (rev 10727)
@@ -120,6 +120,7 @@
 	struct nbt_ntlogon_sam_logon *r;
 	struct nbt_dgram_socket *sock;
 	struct nbt_name src, dst;
+	struct nbt_peer_socket dest;
 	struct dgram_mailslot_handler *handler;
 	NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
 
@@ -153,8 +154,10 @@
 	make_nbt_name_client(&src, req->in.my_computername);
 	make_nbt_name(&dst, req->in.domainname, 0x1c);
 
+	dest.addr = req->in.ip_address;
+	dest.port = 138;
 	status = dgram_mailslot_ntlogon_send(sock, DGRAM_DIRECT_GROUP,
-					     &dst, req->in.ip_address, 138,
+					     &dst, &dest,
 					     &src, &p);
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(0, ("dgram_mailslot_ntlogon_send failed: %s\n",



More information about the samba-cvs mailing list