From: Alan T. DeKok Date: Mon, 29 May 2023 14:32:04 +0000 (-0400) Subject: print out which listener had the error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb2dcfd45cb25db1aadcd49d723656f919e01b8f;p=thirdparty%2Ffreeradius-server.git print out which listener had the error --- diff --git a/src/lib/server/virtual_servers.c b/src/lib/server/virtual_servers.c index f57166adb90..875d53d7f3b 100644 --- a/src/lib/server/virtual_servers.c +++ b/src/lib/server/virtual_servers.c @@ -429,7 +429,10 @@ static int listen_parse(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, qual_inst_name = talloc_asprintf(NULL, "%s.%s", cf_section_name2(server_cs), inst_name); mi = module_alloc(proto_modules, NULL, DL_MODULE_TYPE_PROTO, mod_name, qual_inst_name); talloc_free(qual_inst_name); - if (mi == NULL) return -1; + if (!mi) { + cf_log_err(listener_cs, "Failed loading listener"); + return -1; + } if (DEBUG_ENABLED4) cf_log_debug(ci, "Loading %s listener into %p", inst_name, out);