]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/lookups/lf_quote.c
Allow a forced-fail for banner expansion to close connection without panic-log
[user/henk/code/exim.git] / src / src / lookups / lf_quote.c
index 83eac33b24270aa6c4c41581a690341ae14c2e6b..72e37bfb4039d3e536a7901e6ee524e9fc6ca0f5 100644 (file)
@@ -2,8 +2,9 @@
 *     Exim - an Internet mail transport agent    *
 *************************************************/
 
-/* Copyright (c) University of Cambridge 1995 - 2017 */
+/* Copyright (c) University of Cambridge 1995 - 2018 */
 /* See the file NOTICE for conditions of use and distribution. */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 
 
 #include "../exim.h"
@@ -45,9 +46,8 @@ character. */
 
 if (value[0] == 0 || Ustrpbrk(value, " \t\n\r") != NULL || value[0] == '\"')
   {
-  int j;
   result = string_catn(result, US"\"", 1);
-  for (j = 0; j < vlength; j++)
+  for (int j = 0; j < vlength; j++)
     {
     if (value[j] == '\"' || value[j] == '\\')
       result = string_catn(result, US"\\", 1);