From 0d9d5a5eb7f20b520794b365d745f8878a84f23e Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 21 Mar 2016 15:39:33 +0100 Subject: [PATCH] Bugfix unitialized memory access with root lookups --- src/request-internal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/request-internal.c b/src/request-internal.c index aff967fd..58778a9f 100644 --- a/src/request-internal.c +++ b/src/request-internal.c @@ -840,6 +840,7 @@ _getdns_dns_req_new(getdns_context *context, getdns_eventloop *loop, } } else if (result->append_name == GETDNS_APPEND_NAME_ONLY_TO_SINGLE_LABEL_AFTER_FAILURE && + result->name[0] && result->name[result->name[0]+1] != 0) { /* We have multiple labels, no appending */ result->suffix_len = no_suffixes[0];