r5550: Initialise retry count - valgrind was freaking out because this value
authorTim Potter <tpot@samba.org>
Fri, 25 Feb 2005 04:59:46 +0000 (04:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:54 +0000 (13:10 -0500)
was not set.
(This used to be commit 328f37a3e8d10f97f361fb041be24f1ac88b6b0a)

source4/libcli/resolve/nbtlist.c

index 89e9a63748d80a9db0933b0151521c1d28a2febf..d5b01e06d933aabfd869a3b01933ae0311768a26 100644 (file)
@@ -129,6 +129,7 @@ struct composite_context *resolve_name_nbtlist_send(struct nbt_name *name,
                state->io_queries[i].in.wins_lookup = wins_lookup;
                state->io_queries[i].in.timeout = lp_parm_int(-1, "nbt", "timeout", 3);
 
+               state->io_queries[i].in.retries = 0;
                state->queries[i] = nbt_name_query_send(state->nbtsock, &state->io_queries[i]);
                if (!state->queries[i]) goto failed;