Hi,

Using CVS-HEAD I hit the following bug in winbind, in

libsmb/namequery.c#get_dc_list():
The code piece to remove duplicate entrys/zeroed IPs is buggy. basically
it sets the number of DCs found to -1 if no dupe/zeroed IP was detected.

It's fixed very easily :) I've attached a patch for libsmb/namequery.c,
to make things work again.

I'm not subscribed to this list, in case please include me in a reply.

best wishes && thanks,
dominik

-- 
Dominik 'Aeneas' Schnitzer <[EMAIL PROTECTED]>
http://www.schnitzer.at/dominik/ OpenPGP:C0C2CBEE
Latest Update - 24. August 2002: Interrail 2002 pictures
Index: namequery.c
===================================================================
RCS file: /cvsroot/samba/source/libsmb/namequery.c,v
retrieving revision 1.115
diff -u -r1.115 namequery.c
--- namequery.c	26 Nov 2002 11:57:29 -0000	1.115
+++ namequery.c	30 Nov 2002 22:34:34 -0000
@@ -1340,6 +1340,7 @@
 			while ( i<local_count )
 			{
 				if ( !is_zero_ip(return_iplist[i]) ) {
+					hole_index = i + 1;
 					i++;
 					continue;
 				}

Reply via email to