]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Request may be null
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 23:33:51 +0000 (17:33 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 23:33:51 +0000 (17:33 -0600)
src/main/tls.c

index b3d49b71c05be4089e3f7b08c2ee514e4c837133..d6e741f707837b4be4c2fa7ba2b5404b4bf4b02e 100644 (file)
@@ -452,7 +452,7 @@ static int int_ssl_check(REQUEST *request, SSL *s, int ret, char const *text)
        if ((l = ERR_get_error()) != 0) {
                char const *p = ERR_error_string(l, NULL);
 
-               if (request && p) REDEBUG("SSL says: %s", p);
+               if (p) ROPTIONAL(REDEBUG, ERROR, "SSL says: %s", p);
        }
        e = SSL_get_error(s, ret);
 
@@ -482,11 +482,11 @@ static int int_ssl_check(REQUEST *request, SSL *s, int ret, char const *text)
                 *      being regarded as "dead".
                 */
        case SSL_ERROR_SYSCALL:
-               REDEBUG("%s failed in a system call (%d), TLS session failed", text, ret);
+               ROPTIONAL(REDEBUG, ERROR, "%s failed in a system call (%d), TLS session failed", text, ret);
                return 0;
 
        case SSL_ERROR_SSL:
-               REDEBUG("%s failed inside of TLS (%d), TLS session failed", text, ret);
+               ROPTIONAL(REDEBUG, ERROR, "%s failed inside of TLS (%d), TLS session failed", text, ret);
                return 0;
 
        default:
@@ -496,7 +496,7 @@ static int int_ssl_check(REQUEST *request, SSL *s, int ret, char const *text)
                 *      them - so "politely inform" the caller that
                 *      the code needs updating here.
                 */
-               REDEBUG("FATAL SSL error: %d", e);
+               ROPTIONAL(REDEBUG, ERROR, "FATAL SSL error: %d", e);
                return 0;
        }