From: Marko Kreen Date: Mon, 8 Nov 2010 08:59:09 +0000 (+0200) Subject: dns: fix failed lookup reporting. X-Git-Tag: pgbouncer_1_4_rc3~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12ced94ba150ca40762f4581a787e47253c27718;p=pgbouncer dns: fix failed lookup reporting. --- diff --git a/src/dnslookup.c b/src/dnslookup.c index 40a2933..0e9038e 100644 --- a/src/dnslookup.c +++ b/src/dnslookup.c @@ -327,7 +327,9 @@ loop: /* launch callback */ log_noise("dns: deliver_info(%s) addr=%s", req->name, sa2str(ai->ai_addr, sabuf, sizeof(sabuf))); - ucb->cb_func(ucb->cb_arg, ai->ai_addr, ai->ai_addrlen); + ucb->cb_func(ucb->cb_arg, + ai ? ai->ai_addr : NULL, + ai ? ai->ai_addrlen : 0); free(ucb); /* scroll req list */