summaryrefslogtreecommitdiffstats
path: root/debian/patches/75_09-Fix-non-WITH_CONTENT_SCAN-build.patch
blob: 6071fa7c5bf460bf065bda16bbe46a959b0c0fce (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From d8ecc7bf97934a1e2244788c610c958cacd740bd Mon Sep 17 00:00:00 2001
From: Jeremy Harris <jgh146exb@wizmail.org>
Date: Wed, 31 Aug 2022 17:03:37 +0100
Subject: [PATCH 1/3] Fix non-WITH_CONTENT_SCAN build.

Broken-by: 4e9ed49f8f
---
 src/exim.c  | 11 +++++++++++
 src/regex.c | 10 ----------
 2 files changed, 11 insertions(+), 10 deletions(-)

--- a/src/exim.c
+++ b/src/exim.c
@@ -1677,10 +1677,21 @@
   if ((s = expand_string(big_buffer))) printf("%s\n", CS s);
   else printf("Failed: %s\n", expand_string_message);
 }
 
 
+/* reset regex expansion variables */
+void
+regex_vars_clear(void)
+{
+regex_match_string = NULL;
+for (int i = 0; i < REGEX_VARS; i++) regex_vars[i] = NULL;
+}
+
+
+
+
 
 /*************************************************
 *          Entry point and high-level code       *
 *************************************************/
 
--- a/src/regex.c
+++ b/src/regex.c
@@ -95,20 +95,10 @@
 pcre2_match_data_free(md);
 return FAIL;
 }
 
 
-/* reset expansion variables */
-void
-regex_vars_clear(void)
-{
-regex_match_string = NULL;
-for (int i = 0; i < REGEX_VARS; i++) regex_vars[i] = NULL;
-}
-
-
-
 int
 regex(const uschar ** listptr)
 {
 unsigned long mbox_size;
 FILE * mbox_file;