[nsd-users] maybe a bug for dname_to_string function
totopper at qq.com
Sun Sep 23 12:14:01 UTC 2018
Hi,I read the dname_to_string function, it use a static buffer as a return value, so if I like a code like as following. the output would be wrong.
code for wrong output.
log_msg(LOG_INFO, "%s, %s", dname_to_string(d1), dname_to_string(d2) );
now, the output which have two dname is repeated,even if the variable d1 and variable d2 have different domain name.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nsd-users