admin, resolve ops bugfix: initialize tag in resop early.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Feb 2006 15:23:21 +0000 (15:23 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Feb 2006 23:58:12 +0000 (23:58 +0000)
We can call the completion function before detachment, and it might try
to trace its job tag.  This initialization just makes sure that it
doesn't do something stupid here.

admin.c

diff --git a/admin.c b/admin.c
index 80d21af..7917b26 100644 (file)
--- a/admin.c
+++ b/admin.c
@@ -805,6 +805,7 @@ static void a_resolve(admin *a, admin_resop *r, const char *tag,
 
   /* --- Fill in the easy bits of address --- */
 
+  r->bg.tag = "<starting>";
   r->addr = 0;
   r->func = func;
   if (mystrieq(av[i], "inet")) i++;