/[monit]/monit/protocols/smtp.c
ViewVC logotype

Diff of /monit/protocols/smtp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by martinp, Tue Sep 6 10:09:54 2005 UTC revision 1.19 by hauk, Sat Sep 10 12:34:29 2005 UTC
# Line 65  int check_smtp(Socket_T s) { Line 65  int check_smtp(Socket_T s) {
65      return FALSE;      return FALSE;
66    }    }
67    
68      /* Read past banners */
69      while(NULL != socket_readln(s, buf, STRLEN)) {
70         if(!Util_startsWith(buf, "220")) break;
71      }
72      
73    if(socket_print(s, "QUIT\r\n") < 0) {    if(socket_print(s, "QUIT\r\n") < 0) {
74      log("SMTP: error sending data -- %s\n", STRERROR);      log("SMTP: error sending data -- %s\n", STRERROR);
75      return FALSE;      return FALSE;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26