From: Kern Sibbald Date: Sat, 23 Jun 2007 10:13:00 +0000 (+0000) Subject: More tweaks to crypto and bsock X-Git-Tag: Release-2.2.0~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fea7e2b40f7eb3266adbf08f4a5a14f72e8a0d87;p=bacula%2Fbacula More tweaks to crypto and bsock git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5068 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index 34f21a04bc..0e7f812738 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -798,7 +798,7 @@ void BSOCK::close() free_tls_connection(bsock->tls); bsock->tls = NULL; } - if (bsock->is_timed_out()) { + if (bsock->is_timed_out() || bsock->is_terminated()) { shutdown(bsock->m_fd, SHUT_RDWR); /* discard any pending I/O */ } socketClose(bsock->m_fd); /* normal close */ diff --git a/bacula/src/lib/openssl.c b/bacula/src/lib/openssl.c index 59aadf26f7..7f161d71d1 100644 --- a/bacula/src/lib/openssl.c +++ b/bacula/src/lib/openssl.c @@ -83,7 +83,7 @@ void openssl_post_errors(JCR *jcr, int code, const char *errstring) /* Acquire the human readable string */ ERR_error_string_n(sslerr, buf, sizeof(buf)); Dmsg3(100, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf); - Jmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf); + Qmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf); } }