[Pdns-dev] Re: Bug in pdns_recursor (pdns 2.9.9)
Christof Meerwald
cmeerw at web.de
Mon Jun 23 19:53:36 CEST 2003
On Mon, 23 Jun 2003 00:00:04 +0200, bert hubert wrote:
> On Sun, Jun 22, 2003 at 11:11:30PM +0200, Christof Meerwald wrote:
>> pdns/pdns_recursor.cc (line 47)
>> pthread_t pthread_self(void){pthread_t tmp; return tmp;}
>>
>> returning an uninitialized local variable is a very bad idea (and results in
>> empty lines being written to syslog).
> This function is never called - it is only a bogus function to satisfy an
> unused dependency. If it is ever called, it is a problem.
At least pdns/logger.cc calls pthread_self (and pdns_recursor.cc uses the
Logger).
bye, Christof
--
http://cmeerw.org JID: cmeerw at jabber.at
mailto cmeerw at web.de
More information about the Pdns-dev
mailing list