* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dighost.c,v 1.247 2002/08/02 12:49:46 marka Exp $ */
+/* $Id: dighost.c,v 1.248 2002/08/06 00:35:01 marka Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
*/
static void
connect_timeout(isc_task_t *task, isc_event_t *event) {
- dig_lookup_t *l = NULL;
+ dig_lookup_t *l = NULL, *n;
dig_query_t *query = NULL, *cq;
UNUSED(task);
debug("making new TCP request, %d tries left",
l->retries);
l->retries--;
- requeue_lookup(l, ISC_TRUE);
+ n = requeue_lookup(l, ISC_TRUE);
+ n->origin = query->lookup->origin;
cancel_lookup(l);
}
} else {