Fix $regex<n> use-after-free. Bug 2915
[exim.git] / src / src / local_scan.c
index 4dd0b2baa8c98aab288e05e5e9458ed325c7e75a..7a3bae7e3e8af8f64272492b053d1201b02a07af 100644 (file)
@@ -3,6 +3,7 @@
 *************************************************/
 
 /* Copyright (c) University of Cambridge 1995 - 2009 */
+/* Copyright (c) The Exim Maintainers 2021 */
 /* See the file NOTICE for conditions of use and distribution. */
 
 
@@ -57,8 +58,6 @@ The return values of this function are:
 int
 local_scan(int fd, uschar **return_text)
 {
-fd = fd;                      /* Keep picky compilers happy */
-return_text = return_text;
 return LOCAL_SCAN_ACCEPT;
 }