X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fsmtp-dummy.c;h=3801a5e066c7c8fe1804ca3306e250fb0eb962f7;hp=9da8202fd1ff8c0f7a9b91ff8f6490350831a5dc;hb=ed20210b6db0b237d48765351cb99b87be7a0509;hpb=b0ba84f9e71b0f117dc0bdf0b790c6e2341d3949 diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 9da8202f..3801a5e0 100644 --- a/test/smtp-dummy.c +++ b/test/smtp-dummy.c @@ -71,7 +71,7 @@ static int process_command (FILE *peer, FILE *output, const char *command) { if (STRNCMP_LITERAL (command, "EHLO ") == 0) { - fprintf (peer, "502\r\n"); + fprintf (peer, "502 not implemented\r\n"); fflush (peer); } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { fprintf (peer, "250 localhost\r\n"); @@ -159,6 +159,7 @@ main (int argc, char *argv[]) return 1; } + memset (&addr, 0, sizeof (addr)); addr.sin_family = AF_INET; addr.sin_port = htons (25025); addr.sin_addr = *(struct in_addr *) hostinfo->h_addr;