Bug 803

Summary: confusing (and incorrect) code comment in daemon_cleanup()
Product: unbound Reporter: JINMEI Tatuya <jtatuya>
Component: serverAssignee: unbound team <unbound-team>
Severity: minor CC: cathya, wouter
Priority: P5    
Version: unspecified   
Hardware: Other   
OS: All   

Description JINMEI Tatuya 2016-07-22 03:35:47 CEST
This code comment in daemon/daemon.c:daemon_cleanup() is simply incorrect:

	/* key cache is cleared by module desetup during next daemon_init() */

The key cache is actually cleared during next daemon_fork(), not daemon_init().

A trivial typo, but can be confusing unless you already know the code
very well, so it would be nice if it's corrected.
Comment 1 Wouter Wijngaards 2016-07-22 09:09:44 CEST
Hi Jinmei,

Thanks for the report.  Fixed the comment-bug.

Best regards, Wouter