]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix typo
authorAlan T. DeKok <aland@freeradius.org>
Fri, 22 May 2020 14:19:46 +0000 (10:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 22 May 2020 14:19:46 +0000 (10:19 -0400)
src/lib/util/heap.c

index 42c554eee22711bc8bfa5102950e859308deb6b4..ef391614c59bb8bc1efab97fead86418cd3e9763 100644 (file)
@@ -224,7 +224,7 @@ int fr_heap_extract(fr_heap_t *hp, void *data)
         *      Not in the heap.
         */
        child = index_get(hp, data);
-       if ((child < 0) || ((child == 0) && (data == hp->p[0]))) {
+       if ((child < 0) || ((child == 0) && (data != hp->p[0]))) {
                return -1;
        }