From: Arran Cudbard-Bell Date: Thu, 29 Jun 2017 02:29:13 +0000 (-0400) Subject: Print error if we can’t add the socket to the scheduler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df566b8fd8c30c233cd3d0c06c3c5ddac3534faa;p=thirdparty%2Ffreeradius-server.git Print error if we can’t add the socket to the scheduler --- diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index d5e78356938..afe5ad9f614 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -273,8 +273,9 @@ static int mod_open(void *instance, fr_schedule_t *sc, CONF_SECTION *conf) talloc_free(listen); return -1; } - + if (!fr_schedule_socket_add(sc, listen)) { + cf_log_perr(conf, "Failed adding socket to scheduler"); talloc_free(listen); return -1; }