/[monit]/monit/validate.c
ViewVC logotype

Diff of /monit/validate.c

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

revision 1.14 by hauk, Fri Sep 6 18:13:37 2002 UTC revision 1.15 by chopp, Wed Sep 25 14:54:49 2002 UTC
# Line 432  static int check_connection(Process_T p, Line 432  static int check_connection(Process_T p,
432    
433    }    }
434    
435      if (pp->ssl != NULL ) {
436    
437        if (!embed_ssl_socket(pp->ssl, pp->socket)) {
438    
439          snprintf(report, STRLEN,
440                   "failed establish SSL communication on socket at %s",
441                   pp->address);
442          
443          log("'%s' %s\n", p->name, report);
444          rv= FALSE;
445          goto error;
446          
447        }
448    
449      }
450    
451    /* Run the protocol verification routine through the socket */    /* Run the protocol verification routine through the socket */
452    if (! pp->protocol->check(pp)) {    if (! pp->protocol->check(pp)) {
453            
# Line 455  static int check_connection(Process_T p, Line 471  static int check_connection(Process_T p,
471    }    }
472    
473    error:    error:
474    
475    alarm(0);    alarm(0);
476    
477      if (pp->ssl != NULL) {
478    
479        cleanup_ssl_socket(pp->ssl);
480    
481      }
482    
483    close_socket(pp->socket);    close_socket(pp->socket);
484        
485    return rv;    return rv;

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