diff options
-rwxr-xr-x | bootstrap.sh | 2 | ||||
-rw-r--r-- | libasyncns/asyncns.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 6a60400..498c9b8 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # This file is part of libasyncns. # diff --git a/libasyncns/asyncns.c b/libasyncns/asyncns.c index bc546f4..b4d7087 100644 --- a/libasyncns/asyncns.c +++ b/libasyncns/asyncns.c @@ -429,7 +429,7 @@ static int send_addrinfo_reply(int out_fd, unsigned id, int ret, struct addrinfo for (k = ai; k; k = k->ai_next) { - if (!(p = serialize_addrinfo(p, ai, &resp->header.length, (char*) data + BUFSIZE - (char*) p))) { + if (!(p = serialize_addrinfo(p, k, &resp->header.length, (char*) data + BUFSIZE - (char*) p))) { resp->ret = EAI_MEMORY; break; } |