summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dnsproxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 4c36cb76..b093e87d 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -1903,6 +1903,8 @@ static int strip_domains(char *name, char *answers, int maxlen)
end -= domain_len;
maxlen -= domain_len;
}
+ } else {
+ ptr = answers;
}
answers += strlen(answers) + 1;