]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix comment.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 29 Jul 2019 14:58:23 +0000 (16:58 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 29 Jul 2019 14:58:23 +0000 (16:58 +0200)
validator/autotrust.c

index dceb2dcf5bb53247be78ca3d8f14db3d4dc1ae39..5f20bf5f5c98f1a3ade0e02f27e60f5a3dcc09c8 100644 (file)
@@ -1181,7 +1181,8 @@ void autr_write_file(struct module_env* env, struct trust_anchor* tp)
                log_err("autr_write_file: Module environment is NULL.");
                return;
        }
-       /* unique name with pid number and thread number */
+       /* unique name with pid number, thread number, and struct pointer
+        * (the pointer uniquifies for multiple libunbound contexts) */
        snprintf(tempf, sizeof(tempf), "%s.%d-%d-%llx", fname, (int)getpid(),
                env->worker?*(int*)env->worker:0, (long long int)tp);
        verbose(VERB_ALGO, "autotrust: write to disk: %s", tempf);