Subject: Re: ares_init_options failure

Re: ares_init_options failure

From: Bram Matthys (Syzop) <syzop_at_vulnscan.org>
Date: Thu, 03 Apr 2008 14:03:18 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

this isn't a simple case of a forgotten nullify of opts before setting it?

Søren Dalby Larsen wrote:
| /* ask for local "hosts" lookups too */
| static const char* lookups = "fb";
| struct ares_options opts;

memset(&opts, 0, sizeof(opts));

| opts.lookups = (char*)lookups; // we cheat, libares uses strdup
|
| /* start up our resolver */
| int code = ares_init_options (&aresChannel, &opts, ARES_OPT_LOOKUPS);
|
| Any clue why? As far as I can read the c-ares docs the call is ok, but
| clealy my box disagrees.
|
| /Søren

- --
Bram Matthys
Software developer/IT consultant syzop_at_vulnscan.org
PGP key: www.vulnscan.org/pubkey.asc
PGP fp: 8DD4 437E 9BA8 09AA 0A8D 1811 E1C3 D65F E6ED 2AA2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFH9MeG46ioc5305a8RAlQQAJ4j3nMI122GG7Wj/6VyIJp8InjxcgCgz+G3
VXKRDsb8DJqWXZZmr3eWO/4=
=SXA0
-----END PGP SIGNATURE-----
Received on 2008-04-03