8.2.1: wrong master address in slave zone header comment
Erich.Meier at informatik.uni-erlangen.de
Thu Aug 12 15:19:30 UTC 1999
On Thu, Aug 12, 1999 at 05:09:08PM +0200, Juergen Georgi wrote:
> On slave 126.96.36.199 I get the comment
> ; from 188.8.131.52:53 (local 184.108.40.206) using AXFR at Wed Aug 11 09:59:39 1999
> Don't ask me why, but inet_ntoa(local.sin_addr) in fprintf() messes up
> the master's address (Solaris-2.6, gcc).
This is because of inet_ntoa function uses a static buffer that gets overwritten
on every call. So don't use more than one inet_ntoa() in a single printf() or
I've been digging this up a while ago, but I was wondering, too.
More information about the bind-workers