svn commit: samba r5551 - in branches/SAMBA_4_0/source/libcli/resolve: .

tpot at samba.org tpot at samba.org
Fri Feb 25 05:25:17 GMT 2005


Author: tpot
Date: 2005-02-25 05:25:17 +0000 (Fri, 25 Feb 2005)
New Revision: 5551

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

Log:
Protect against falling off the end of the name resolve order list
if a name is not found.

Modified:
   branches/SAMBA_4_0/source/libcli/resolve/resolve.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/resolve/resolve.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/resolve/resolve.c	2005-02-25 04:59:46 UTC (rev 5550)
+++ branches/SAMBA_4_0/source/libcli/resolve/resolve.c	2005-02-25 05:25:17 UTC (rev 5551)
@@ -101,7 +101,7 @@
 		if (method) {
 			req = method->send_fn(&state->name, c->event_ctx);
 		}
-		if (req == NULL) state->methods++;
+		if (req == NULL && state->methods[0]) state->methods++;
 	} while (!req && state->methods[0]);
 
 	if (req) {



More information about the samba-cvs mailing list