]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check fd in non-debug builds too
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 14 Jun 2017 22:27:13 +0000 (18:27 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 14 Jun 2017 22:27:13 +0000 (18:27 -0400)
src/modules/proto_radius/proto_radius.c

index 6c6ddbc37cbdc0322dc4d0b93ddceb831e914b5e..eb24077a4060f5a2b02136cacc441d0f3e751066 100644 (file)
@@ -194,7 +194,7 @@ static int mod_open(void *instance, fr_schedule_t *sc, CONF_SECTION *conf)
        }
 
        fd = inst->app_io->op.fd(inst->io_submodule->inst);
-       rad_assert(fd >= 0);
+       if (!rad_cond_assert(fd >= 0)) return -1;
 
        /*
         *      Build the fr_io_t from the op array of the transport and its