Permalink
Browse files

Clarify precedence of & and ?

  • Loading branch information...
Cizzle committed Dec 19, 2017
1 parent 5b427e0 commit a8d0d178a4745167ed8930eb982fadcdd3e36fdc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tls.c
View
@@ -663,7 +663,7 @@ void ssl_info(SSL *ssl, int where, int ret)
/* However we still check <0 as man example does so too */
if (err & (SSL_ERROR_WANT_READ | SSL_ERROR_WANT_WRITE)) {
/* Errors to be ignored for non-blocking */
debug1("TLS: awaiting more %s", err & SSL_ERROR_WANT_READ ? "reads" : "writes");
debug1("TLS: awaiting more %s", (err & SSL_ERROR_WANT_READ) ? "reads" : "writes");
} else {
putlog(data->loglevel, "*", "TLS: failed in: %s.",
SSL_state_string_long(ssl));

0 comments on commit a8d0d17

Please sign in to comment.