]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix pcre atexit function
authorNick Porter <nick@portercomputing.co.uk>
Mon, 11 Apr 2022 17:01:54 +0000 (18:01 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 11 Apr 2022 17:01:54 +0000 (18:01 +0100)
src/lib/util/regex.c

index ec78e136e0981f56fb5d6949d6cecf0359fa61b3..ec6f66113210b8743960892bd9b12d3032c0bbe8 100644 (file)
@@ -667,10 +667,11 @@ static void _pcre_talloc_free(void *to_free)
        talloc_free(to_free);
 }
 
-static void _pcre_globals_reset(UNUSED void *uctx)
+static int _pcre_globals_reset(UNUSED void *uctx)
 {
        pcre_malloc = NULL;
        pcre_free = NULL;
+       return 0;
 }
 
 static void _pcre_globals_configure(UNUSED void *uctx)