/[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.15 by hauk, Sun Dec 12 23:45:09 2004 UTC revision 1.16 by hauk, Sun Dec 19 00:31:51 2004 UTC
# Line 57  int check_smtp(Socket_T s) { Line 57  int check_smtp(Socket_T s) {
57      return FALSE;      return FALSE;
58    }    }
59    
60    Util_chomp(buf, STRLEN);    Util_chomp(buf);
61        
   /* RATS: ignore */ /* Util_chomp does zero termination */  
62    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
63    if(status != 220) {    if(status != 220) {
64      log("SMTP error: %s\n", buf);      log("SMTP error: %s\n", buf);
# Line 76  int check_smtp(Socket_T s) { Line 75  int check_smtp(Socket_T s) {
75      return FALSE;      return FALSE;
76    }    }
77    
78    Util_chomp(buf, STRLEN);    Util_chomp(buf);
79        
   /* RATS: ignore */ /* Util_chomp does zero termination */  
80    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
81    if(status != 221) {    if(status != 221) {
82      log("SMTP error: %s\n", buf);      log("SMTP error: %s\n", buf);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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