From: Arran Cudbard-Bell Date: Wed, 14 Jun 2017 22:27:13 +0000 (-0400) Subject: Check fd in non-debug builds too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6470514ef3f1e19779e6053bb109fd418afcefe;p=thirdparty%2Ffreeradius-server.git Check fd in non-debug builds too --- diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index 6c6ddbc37cb..eb24077a406 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -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