<div dir="ltr">Hi,<div><br></div><div>I just took the latest 1.5.3, compiled it and ran the executable without doing any config. Just to see what happens.</div><div><br></div><div>It segfaulted after saying user unbound not found.</div><div><br></div><div>The issue is in util/config_file.c in function config_lookup_uid().</div><div><br></div><div>getpwnam() can return NULL and so subsequent referrences to pw_uid and pw_gid are invalid.</div><div><br></div><div>This patch corrects the code path to assign uid and gid only if getpwnam() is successful.</div><div><br></div><div>It also removes the log_err() call, because perform_setup() in daemon/unbound.c would print it anyway in fatal_exit()</div><div><br></div><div>I know it's a tiny buglet, but I couldn't resist fixing a segfault :-)</div><div><br></div><div>Best regards,<br></div><div>Maciej Soltysiak</div><div><br></div><div>DNSCrypt Poland</div><div><a href="https://dnscrypt.pl/">https://dnscrypt.pl/</a></div><div><br></div></div>