From: Alan T. DeKok Date: Thu, 28 Jun 2018 20:17:38 +0000 (-0400) Subject: tables must define a callback function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fc7b2dd41bcfdfbf00f68ef736946ba60907461;p=thirdparty%2Ffreeradius-server.git tables must define a callback function --- diff --git a/src/main/command.c b/src/main/command.c index c08ec38ade2..b2d0820d822 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -188,6 +188,11 @@ int fr_command_add(TALLOC_CTX *talloc_ctx, fr_cmd_t **head, char const *name, vo return -1; } + if (!table->func) { + fr_strerror_printf("Command tables MUST define a callback function."); + return -1; + } + memset(argv, 0, sizeof(argv)); memset(types, 0, sizeof(types)); start = head;