Call 'print_stuff' even if a handshake failed.

This commit is contained in:
Bodo Möller 2006-06-15 19:00:34 +00:00
parent 076944d920
commit b166f13eb5

View File

@ -925,10 +925,10 @@ re_start:
{ {
in_init=0; in_init=0;
#ifndef OPENSSL_NO_TLSEXT #ifndef OPENSSL_NO_TLSEXT
if (servername != NULL && !SSL_session_reused(con)) if (servername != NULL && !SSL_session_reused(con))
{ {
BIO_printf(bio_c_out,"Server did %sacknowledge servername extension.\n",tlsextcbp.ack?"":"not "); BIO_printf(bio_c_out,"Server did %sacknowledge servername extension.\n",tlsextcbp.ack?"":"not ");
} }
#endif #endif
print_stuff(bio_c_out,con,full_log); print_stuff(bio_c_out,con,full_log);
if (full_log > 0) full_log--; if (full_log > 0) full_log--;
@ -1261,6 +1261,8 @@ printf("read=%d pending=%d peek=%d\n",k,SSL_pending(con),SSL_peek(con,zbuf,10240
} }
} }
shut: shut:
if (in_init)
print_stuff(bio_c_out,con,full_log);
SSL_shutdown(con); SSL_shutdown(con);
SHUTDOWN(SSL_get_fd(con)); SHUTDOWN(SSL_get_fd(con));
ret=0; ret=0;