/[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.14 by chopp, Wed Feb 18 22:31:42 2004 UTC revision 1.15 by hauk, Sun Dec 12 23:45:09 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    chomp(buf, STRLEN);    Util_chomp(buf, STRLEN);
61        
62    /* RATS: ignore */ /* chomp does zero termination */    /* RATS: ignore */ /* Util_chomp does zero termination */
63    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
64    if(status != 220) {    if(status != 220) {
65      log("SMTP error: %s\n", buf);      log("SMTP error: %s\n", buf);
# Line 76  int check_smtp(Socket_T s) { Line 76  int check_smtp(Socket_T s) {
76      return FALSE;      return FALSE;
77    }    }
78    
79    chomp(buf, STRLEN);    Util_chomp(buf, STRLEN);
80        
81    /* RATS: ignore */ /* chomp does zero termination */    /* RATS: ignore */ /* Util_chomp does zero termination */
82    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
83    if(status != 221) {    if(status != 221) {
84      log("SMTP error: %s\n", buf);      log("SMTP error: %s\n", buf);

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

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