From fe0b1da859a1327fe103d28e151d0add1aacfdf3 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Mon, 29 Jul 2019 16:58:23 +0200 Subject: [PATCH] Fix comment. --- validator/autotrust.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validator/autotrust.c b/validator/autotrust.c index dceb2dcf5..5f20bf5f5 100644 --- a/validator/autotrust.c +++ b/validator/autotrust.c @@ -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);