SRS: fix crash in queryprogram router when compiled with EXPERIMENTAL_SRS
[exim.git] / src / src / routers / queryprogram.c
index 138062e16544efebdfe9758564f89349900c2138..018e4c831a2d2040108366ff6c1d1a7e49a41ebc 100644 (file)
@@ -223,6 +223,10 @@ rc = rf_get_munge_headers(addr, rblock, &addr_prop.extra_headers,
   &addr_prop.remove_headers);
 if (rc != OK) return rc;
 
+#ifdef EXPERIMENTAL_SRS
+addr_prop.srs_sender = NULL;
+#endif
+
 /* Get the fixed or expanded uid under which the command is to run
 (initialization ensures that one or the other is set). */