diff options
Diffstat (limited to 'usr.sbin/smtpd/smtpc.c')
-rw-r--r-- | usr.sbin/smtpd/smtpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpc.c b/usr.sbin/smtpd/smtpc.c index 59479703..c0f5d992 100644 --- a/usr.sbin/smtpd/smtpc.c +++ b/usr.sbin/smtpd/smtpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpc.c,v 1.10 2019/09/21 09:04:08 semarie Exp $ */ +/* $OpenBSD: smtpc.c,v 1.11 2020/09/14 18:32:11 millert Exp $ */ /* * Copyright (c) 2018 Eric Faurot <eric@openbsd.org> @@ -193,7 +193,7 @@ parse_server(char *server) *p = '\0'; p += 3; /* check for credentials */ - c = strchr(p, '@'); + c = strrchr(p, '@'); if (c) { creds = p; *c = '\0'; |