maybe a bug for dname_to_string function

"James Lin" <[email protected]>
Newsgroups gmane.network.dns.nsd.general
Message-ID <[email protected]>
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.
dname_type *d1;
dname_type *d2;
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.

_______________________________________________
nsd-users mailing list
[email protected]
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.