diff --git a/CHANGES b/CHANGES index 1ed9630a79..a63095cc3e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ --- 9.2.1rc1 released --- +1207. [bug] libbind: getaddrinfo() could call freeaddrinfo() with + an invalid pointer. + 1205. [bug] OPT, TSIG and TKEY cannot be used to set the "class" of the message. [RT #2449] diff --git a/lib/bind/irs/getaddrinfo.c b/lib/bind/irs/getaddrinfo.c index f2c533d611..4dfe7f0d83 100644 --- a/lib/bind/irs/getaddrinfo.c +++ b/lib/bind/irs/getaddrinfo.c @@ -320,7 +320,7 @@ getaddrinfo(hostname, servname, hints, res) struct addrinfo sentinel; struct addrinfo *cur; int error = 0; - struct addrinfo ai, ai0, *afai; + struct addrinfo ai, ai0, *afai = NULL; struct addrinfo *pai; const struct explore *ex;