diff options
author | 2009-09-22 15:44:31 +0000 | |
---|---|---|
committer | 2009-09-22 15:44:31 +0000 | |
commit | 175e7e176eb444a36aa0cf98e075f8000cdc678d (patch) | |
tree | 8495725fd2558a7554b6d51ab2780939f27d6c77 | |
parent | Update capability code to follow RFC 5492. Unlike before multiple (diff) | |
download | wireguard-openbsd-175e7e176eb444a36aa0cf98e075f8000cdc678d.tar.xz wireguard-openbsd-175e7e176eb444a36aa0cf98e075f8000cdc678d.zip |
Make the error messages for failures at EHLO more precise by
distinguishing between unavailable extensions and those that are
available but have failed.
-rw-r--r-- | usr.sbin/smtpd/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/client.c b/usr.sbin/smtpd/client.c index 7e89f327902..b50ffa7445a 100644 --- a/usr.sbin/smtpd/client.c +++ b/usr.sbin/smtpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.5 2009/09/22 12:24:06 jacekm Exp $ */ +/* $OpenBSD: client.c,v 1.6 2009/09/22 15:44:31 jacekm Exp $ */ /* * Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net> @@ -804,7 +804,8 @@ client_next_state(struct smtp_client *sp) return (e->state); else if (e->must) { snprintf(sp->ebuf, sizeof(sp->ebuf), - "150 Could not use %s", e->name); + "%s %s", e->name, + e->fail ? "failed" : "not available"); return (0); } } |