]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix return codes
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 5 Mar 2019 11:30:32 +0000 (19:30 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 5 Mar 2019 11:30:42 +0000 (19:30 +0800)
src/lib/server/module.c
src/lib/server/pool.c

index 20fd69b25d7e9c61ced9ae82f0a3c00caaea507c..18237bc55fbc50c1b72262211e8a60a980e5b1b8 100644 (file)
@@ -307,7 +307,7 @@ fr_pool_t *module_connection_pool_init(CONF_SECTION *module,
 
                if (fr_pool_start(pool) < 0) {
                        ERROR("%s: Starting initial connections failed", log_prefix);
-                       return -1;
+                       return NULL;
                }
 
                DEBUG4("%s: Adding pool reference %p to config item \"%s.pool\"", log_prefix, pool, parent_name(cs));
index afa177a362b29998a63a5ac6d03bc00b050ca8de..cad160ab73f79f71dd4c49a97d91da7f7bcef0ec 100644 (file)
@@ -1024,7 +1024,7 @@ fr_pool_t *fr_pool_init(TALLOC_CTX *ctx,
                ERROR("%s: Failed creating connection heap", __FUNCTION__);
        error:
                fr_pool_free(pool);
-               return -1;
+               return NULL;
        }
 
        pool->log_prefix = log_prefix ? talloc_typed_strdup(pool, log_prefix) : "core";