summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2018-06-12 10:46:55 -0400
committerAdam <Adam@anope.org>2018-06-12 10:46:55 -0400
commit94e10d52fb3b09b928e6dc78d9d5dc2e3f56bc77 (patch)
tree9579146abc473d469add826ebddce453f6a7d6ce
parentd25c8c169ec5b898730dbf809624876d864c6f57 (diff)
anopesmtp: fix previous commit
-rw-r--r--src/tools/anopesmtp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/anopesmtp.cpp b/src/tools/anopesmtp.cpp
index 548a10ff6..8b13bbdc0 100644
--- a/src/tools/anopesmtp.cpp
+++ b/src/tools/anopesmtp.cpp
@@ -429,6 +429,8 @@ int smtp_send_email()
void smtp_disconnect()
{
+ char buf[1024];
+
if (!smtp_send("QUIT\r\n"))
{
alog("SMTP: error writing to socket");
@@ -439,7 +441,7 @@ void smtp_disconnect()
alog("SMTP: error reading buffer");
}
- code = smtp_get_code(buf);
+ int code = smtp_get_code(buf);
if (code != 221)
{
alog("SMTP: error expected code 221 got %d",code);