X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f46f589c505e07541e49b37d8690cda297c41802..e63825824cc406c160ccbf2b154c5d81b168604a:/src/src/malware.c diff --git a/src/src/malware.c b/src/src/malware.c index 8b5ec27c4..423a5b692 100644 --- a/src/src/malware.c +++ b/src/src/malware.c @@ -314,7 +314,10 @@ PCRE2_UCHAR * substr = NULL; PCRE2_SIZE slen; if (i >= 2) /* Got it */ + { pcre2_substring_get_bynumber(md, 1, &substr, &slen); /* uses same ctx as md */ + if (!substr) substr = US""; + } /* pcre2_match_data_free(md); gen ctx needs no free */ return US substr; }