[Pdns-dev] Re: 2.9.12 delayed because of bugs in the assembler

bert hubert ahu at ds9a.nl
Sat Oct 4 00:31:53 CEST 2003


On Fri, Oct 03, 2003 at 10:36:06PM +0200, Christof Meerwald wrote:

> Please have another look at the code and give it a second thought:

Thanks for spotting this. Must've been a pretty bad brainfart. I even
remember testing this.

Doh.

New version, please check:

bool IpToU32(const string &str, u_int32_t *ip)
{
  struct in_addr inp;
  if(inet_aton(str.c_str(), &inp)) {
    *ip=inp.s_addr;
    return true;
  }
  return false;
}



-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-dev mailing list