SRS: avoid expanding ${srs_encode...} when guarded by ${if...}
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 3 Jun 2022 14:34:03 +0000 (15:34 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 3 Jun 2022 14:34:03 +0000 (15:34 +0100)
src/src/expand.c

index 06dc58cb1c8c03f04867c2454f2e18b9c2d51ecd..36c9f423bedf06e844bb84a2a9aece8344a57472 100644 (file)
@@ -6942,6 +6942,7 @@ while (*s)
         case 2:
         case 3: goto EXPAND_FAILED;
         }
+      if (skipping) continue;
 
       if (sub[1] && *(sub[1]))
        {
@@ -7011,7 +7012,6 @@ while (*s)
       else
        DEBUG(D_expand) debug_printf_indent("null return_path for srs-encode\n");
 
-      if (skipping) continue;
       break;
       }
 #endif /*SUPPORT_SRS*/