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 |
|
|
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; |