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

Diff of /monit/protocols/imap.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 hauk, Wed Oct 19 00:50:38 2005 UTC
# Line 56  int check_imap(Socket_T s) { Line 56  int check_imap(Socket_T s) {
56        
57    ASSERT(s);    ASSERT(s);
58        
59    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(!socket_readln(s, buf, sizeof(buf))) {
60      log("IMAP: error receiving data -- %s\n", STRERROR);      log("IMAP: error receiving data -- %s\n", STRERROR);
61      return FALSE;      return FALSE;
62    }    }
# Line 73  int check_imap(Socket_T s) { Line 73  int check_imap(Socket_T s) {
73      return FALSE;      return FALSE;
74    }    }
75    
76    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(!socket_readln(s, buf, sizeof(buf))) {
77      log("IMAP: error receiving data -- %s\n", STRERROR);      log("IMAP: error receiving data -- %s\n", STRERROR);
78      return FALSE;      return FALSE;
79    }    }

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