]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ensure "port_name" is initialized
authorAlan T. DeKok <aland@freeradius.org>
Wed, 7 Jun 2017 15:29:56 +0000 (11:29 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 7 Jun 2017 15:29:56 +0000 (11:29 -0400)
src/modules/proto_radius/proto_radius.c

index 266a6646241ecb6cd0580a91b85d3ae03fcc4119..99d12cea38d3e55cd273cff14779bb9bcf766d84 100644 (file)
@@ -145,7 +145,7 @@ static int compile_type(proto_radius_ctx_t *ctx, CONF_SECTION *server, CONF_SECT
        /*
         *      Convert "Access-Request" -> "auth"
         */
-       lib = NULL;
+       port_name = lib = NULL;
        for (i = 0; type2lib[i].type != NULL; i++) {
                if (strcmp(type2lib[i].type, value) == 0) {
                        lib = type2lib[i].lib;