diff --git a/src/agents/smtp/smtpd.c b/src/agents/smtp/smtpd.c index 3f1d23b..4b414a5 100644 --- a/src/agents/smtp/smtpd.c +++ b/src/agents/smtp/smtpd.c @@ -32,7 +32,6 @@ #include #include -#include #define LOGGERNAME "smtpd" #define PRODUCT_NAME "Bongo SMTP Agent" @@ -2323,9 +2322,13 @@ DeliverRemoteMessage (ConnectionStruct * Client, unsigned char *Sender, } FreeInternalConnection(Client->remotesmtp); - if ((RetVal==DELIVER_SUCCESS) || (RetVal==DELIVER_FAILURE) || Exiting) { + if (RetVal == DELIVER_SUCCESS) { goto finish; } + if (RetVal == DELIVER_FAILURE) { + goto finish; + } + if (Exiting) goto finish; // ping the Queue agent to ensure we don't time out NMAPSendCommand (Client->client.conn, "NOOP\r\n", 6);