diff options
-rw-r--r-- | src/libstrongswan/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils.c b/src/libstrongswan/utils.c index 2ab061a74..ba12cd764 100644 --- a/src/libstrongswan/utils.c +++ b/src/libstrongswan/utils.c @@ -287,7 +287,7 @@ bool ref_put(refcount_t *ref) bool more_refs; pthread_mutex_lock(&ref_mutex); - more_refs = --(*ref); + more_refs = --(*ref) > 0; pthread_mutex_unlock(&ref_mutex); return !more_refs; } |