awaw / dnsproxy

proxy queries to split recursive/authoritative servers
MIT License
15 stars 4 forks source link

daemon.c not use chdir correctly #13

Closed talau closed 2 years ago

talau commented 2 years ago

Hi there!

The daemon.c uses chdir without checking the return. This may cause a GCC warning with some options, and if chdir fails the function `int daemon' does not return an error.

Cheers, mt