]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't do direct comparison with pointer
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 19:08:13 +0000 (14:08 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 19:08:13 +0000 (14:08 -0500)
src/lib/server/state.c

index cf8355ab3409923dcfe9b474f288b26d4fea63d7..65ad35efd8356474ec54a606bf344215aae43121 100644 (file)
@@ -678,7 +678,7 @@ int fr_state_to_request(fr_state_tree_t *state, request_t *request)
        PTHREAD_MUTEX_UNLOCK(&state->mutex);
 
        /* Probably impossible in the current code */
-       if (unlikely(entry->thawed)) {
+       if (unlikely(entry->thawed != NULL)) {
                RERROR("State entry has already been thawed by a request %"PRIu64, entry->thawed->number);
                PTHREAD_MUTEX_UNLOCK(&state->mutex);
                return -2;