diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-02-05 11:45:19 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-02-05 11:45:19 +0000 |
commit | a22b20a625872fe007578606468f19db80bf4e46 (patch) | |
tree | d187d315377cda3a38eacb26c6fb3ed65e94c047 /usr.sbin/smtpd/util.c | |
parent | 7cd8ab6cfacbee8d6601302f1bda468a6acd83f0 (diff) |
- handle getaddrinfo() error as LKA_TEMPFAIL
- handle getsockname() error in smtp_connected()
- accept '/' as part of user-part, expand to ':' as done by qmail
- fix wrong check in mda leading to bogus Return-Path header
- fix aliases parsing when there's a white space between key and separator
- some cosmethic cleanup
Diffstat (limited to 'usr.sbin/smtpd/util.c')
-rw-r--r-- | usr.sbin/smtpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index d6a30802644..07a4d412639 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.91 2013/01/31 18:34:43 eric Exp $ */ +/* $OpenBSD: util.c,v 1.92 2013/02/05 11:45:18 gilles Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -431,7 +431,7 @@ valid_localpart(const char *s) * RFC 5322 defines theses characters as valid: !#$%&'*+-/=?^_`{|}~ * some of them are potentially dangerous, and not so used after all. */ -#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("%+-=_", (c))) +#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("%+-/=_", (c))) nextatom: if (! IS_ATEXT(*s) || *s == '\0') return 0; |