[ntp:hackers] IPv6, emalloc

Harlan Stenn stenn at ntp.org
Wed Nov 11 01:45:01 UTC 2009


Hi Hal,

> I'm working on ntp_intres.  I'm close to having a fix for bug 975
> (pool via deferred DNS path) working.  I'm testing and cleaning up
> loose ends.

Yay!

> Anybody know a handy name that will return an IPv6 address so I can
> test that path?  How about a name with multiple IPv6 and/or mixed IPv4
> and IPv6 addresses?

ntp1.isc.org has A and AAAA records.

> There are several storage leaks in there.  How do I return memory
> obtained by emalloc?  Is there a writeup someplace?  It looks like
> it's just a wrapper around malloc to print a sensible error message
> and crash if it gets an error return, so I should just call free.
> Right?

emalloc() is a wrapper around malloc, so just call free()

H


More information about the hackers mailing list