summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2008-11-10 03:55:37 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2008-11-10 03:55:37 +0000
commit6a814f32b6f5a12b2709efe7eb472f82e8b082cc (patch)
tree14518078f049e07d70072b9152dd8b80c295f47f /usr.sbin/smtpd
parenta07e938a3cb6d6ef1b62e154c3c2815b741c98db (diff)
last character in line is at len - 1. ok gilles
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/aliases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c
index f8f7755a8c4..c0b063b310a 100644
--- a/usr.sbin/smtpd/aliases.c
+++ b/usr.sbin/smtpd/aliases.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aliases.c,v 1.3 2008/11/10 00:57:35 gilles Exp $ */
+/* $OpenBSD: aliases.c,v 1.4 2008/11/10 03:55:36 tedu Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -395,7 +395,7 @@ alias_is_address(struct alias *alias, char *line, size_t len)
return 0;
/* @ cannot start or end an address */
- if (domain == line || domain == line + len)
+ if (domain == line || domain == line + len - 1)
return 0;
/* scan pre @ for disallowed chars */