]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tables must define a callback function
authorAlan T. DeKok <aland@freeradius.org>
Thu, 28 Jun 2018 20:17:38 +0000 (16:17 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 Jun 2018 13:07:43 +0000 (09:07 -0400)
src/main/command.c

index c08ec38ade25d4f10c0eb3b1604710cbcc27c469..b2d0820d822bed53f608e19daae7c67234796ec8 100644 (file)
@@ -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;