aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/driver.c b/driver.c
index 9c1db97d..5fec2a3c 100644
--- a/driver.c
+++ b/driver.c
@@ -261,16 +261,17 @@ struct idlist **xmit_names; /* list of recipient names parsed out */
int sl;
int off = 0;
- /*
- * If the name of the user begins with a
- * qmail virtual domain prefix, remove
- * the prefix
- */
- if (ctl->server.qvirtual)
- {
- sl=strlen(ctl->server.qvirtual);
- if (!strncasecmp(name,ctl->server.qvirtual,sl)) off=sl;
- }
+ /*
+ * If the name of the user begins with a
+ * qmail virtual domain prefix, remove
+ * the prefix.
+ */
+ if (ctl->server.qvirtual)
+ {
+ sl = strlen(ctl->server.qvirtual);
+ if (!strncasecmp(name,ctl->server.qvirtual,sl))
+ off = sl;
+ }
lname = idpair_find(&ctl->localnames, name+off);
if (!lname && ctl->wildcard)