summaryrefslogtreecommitdiff
blob: 27e68bfdd74fd7fe0a8719a2d87b4ebb15089d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From d4bc023436e4cce7c23c5f8bb5199e178b4cc743 Mon Sep 17 00:00:00 2001
From: "Heiko Schlittermann (HS12-RIPE)" <hs@schlittermann.de>
Date: Sun, 16 May 2021 19:11:19 +0200
Subject: [PATCH] Fix host_name_lookup (Close 2747)

https://bugs.exim.org/show_bug.cgi?id=2747

(cherry picked from commit 20812729e3e47a193a21d326ecd036d67a8b2724)
---
 src/src/host.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/src/host.c b/src/src/host.c
--- a/src/host.c
+++ b/src/host.c
@@ -1691,7 +1691,7 @@ while ((ordername = string_nextinlist(&list, &sep, NULL, 0)))
       {
       uschar **aptr = NULL;
       int ssize = 264;
-      int count = 0;
+      int count = 1;  /* need 1 more for terminating NULL */
       int old_pool = store_pool;
 
       sender_host_dnssec = dns_is_secure(dnsa);