/[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.17 by martinp, Thu Jan 6 20:51:50 2005 UTC revision 1.18 by martinp, Tue Sep 6 10:09:54 2005 UTC
# Line 52  int check_smtp(Socket_T s) { Line 52  int check_smtp(Socket_T s) {
52    
53    ASSERT(s);    ASSERT(s);
54    
55    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(socket_readln(s, buf, sizeof(buf)) <= 0) {
56      log("SMTP: error receiving data -- %s\n", STRERROR);      log("SMTP: error receiving data -- %s\n", STRERROR);
57      return FALSE;      return FALSE;
58    }    }
# Line 70  int check_smtp(Socket_T s) { Line 70  int check_smtp(Socket_T s) {
70      return FALSE;      return FALSE;
71    }    }
72    
73    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(socket_readln(s, buf, sizeof(buf)) <= 0) {
74      log("SMTP: error receiving data -- %s\n", STRERROR);      log("SMTP: error receiving data -- %s\n", STRERROR);
75      return FALSE;      return FALSE;
76    }    }

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

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