summaryrefslogtreecommitdiff
path: root/notifier
diff options
context:
space:
mode:
Diffstat (limited to 'notifier')
-rw-r--r--notifier/mailto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/notifier/mailto.c b/notifier/mailto.c
index a05addf62..9b3aeccab 100644
--- a/notifier/mailto.c
+++ b/notifier/mailto.c
@@ -248,6 +248,10 @@ email_message(const char *to, /* I - Recipient of message */
fprintf(stderr, "DEBUG: Connected to \"%s\"...\n", mailtoSMTPServer);
+ if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500)
+ goto smtp_error;
+ fprintf(stderr, "DEBUG: <<< %s\n", response);
+
cupsFilePrintf(fp, "HELO %s\r\n",
httpGetHostname(NULL, hostbuf, sizeof(hostbuf)));
fprintf(stderr, "DEBUG: >>> HELO %s\n", hostbuf);