From: gilles Date: Wed, 14 Oct 2015 21:02:11 +0000 (+0000) Subject: fix define and enhanced status code reason for 5.5.0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ff73a58fbba00cbecbd3065d8543592cbd5649a;p=openbsd fix define and enhanced status code reason for 5.5.0 --- diff --git a/usr.sbin/smtpd/esc.c b/usr.sbin/smtpd/esc.c index d3517eb59cb..f311b8e8087 100644 --- a/usr.sbin/smtpd/esc.c +++ b/usr.sbin/smtpd/esc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esc.c,v 1.3 2015/01/20 17:37:54 deraadt Exp $ */ +/* $OpenBSD: esc.c,v 1.4 2015/10/14 21:02:11 gilles Exp $ */ /* * Copyright (c) 2014 Gilles Chehade @@ -72,7 +72,7 @@ static struct escode { { ESC_DELIVERY_TIME_EXPIRED, "Delivery time expired" }, /* 5.x */ - { ESC_OTHER_PROTOCOL_STATUS, "Other/Undefined protocol status" }, + { ESC_INVALID_RECIPIENT, "Invalid recipient" }, { ESC_INVALID_COMMAND, "Invalid command" }, { ESC_SYNTAX_ERROR, "Syntax error" }, { ESC_TOO_MANY_RECIPIENTS, "Too many recipients" }, diff --git a/usr.sbin/smtpd/smtpd-api.h b/usr.sbin/smtpd/smtpd-api.h index f1aa06d1b8b..6cb1a10e796 100644 --- a/usr.sbin/smtpd/smtpd-api.h +++ b/usr.sbin/smtpd/smtpd-api.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd-api.h,v 1.21 2015/01/20 17:37:54 deraadt Exp $ */ +/* $OpenBSD: smtpd-api.h,v 1.22 2015/10/14 21:02:11 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -254,7 +254,7 @@ enum enhanced_status_code { ESC_DELIVERY_TIME_EXPIRED = 47, /* 5.x */ - ESC_OTHER_PROTOCOL_STATUS = 50, + ESC_INVALID_RECIPIENT = 50, ESC_INVALID_COMMAND = 51, ESC_SYNTAX_ERROR = 52, ESC_TOO_MANY_RECIPIENTS = 53,