From: W.C.A. Wijngaards Date: Mon, 29 Jul 2019 14:58:23 +0000 (+0200) Subject: Fix comment. X-Git-Tag: release-1.9.3rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0b1da859a1327fe103d28e151d0add1aacfdf3;p=thirdparty%2Funbound.git Fix comment. --- 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);