]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use correct assert. Fixes #4995
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 May 2023 19:08:12 +0000 (15:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 May 2023 19:08:12 +0000 (15:08 -0400)
src/main/threads.c

index 2f53ebad6eea0de705992ab9311981f3ffa985e3..f88d3f7ff745507465cb03922947494ee45ac3d4 100644 (file)
@@ -253,7 +253,7 @@ static pthread_mutex_t *ssl_mutexes = NULL;
 
 static void ssl_locking_function(int mode, int n, UNUSED char const *file, UNUSED int line)
 {
-       rad_assert(ssl_mutexes[n] != NULL);
+       rad_assert(&ssl_mutexes[n] != NULL);
 
        if (mode & CRYPTO_LOCK) {
                pthread_mutex_lock(&ssl_mutexes[n]);