]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
out-smart clan scan
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 May 2020 22:05:57 +0000 (18:05 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 May 2020 22:55:12 +0000 (18:55 -0400)
src/modules/proto_control/radmin.c

index 23ccc451fa17924cb23a8dc8440d6cee60cc6a86..4417364b198aa01d1c907653b02cd7ae0fd58ec7 100644 (file)
@@ -133,7 +133,7 @@ typedef struct {
 //static radmin_state_t state;
 
 static bool echo = false;
-static char const *secret = NULL;
+static char const *secret = "";
 static bool unbuffered = false;
 static bool use_readline = true;
 
@@ -219,10 +219,6 @@ static ssize_t do_challenge(int fd)
        fr_conduit_type_t conduit;
        uint8_t challenge[16];
 
-#ifdef __clang_analyzer__
-       if (!secret) return -1;
-#endif
-
        challenge[0] = 0x00;
 
        /*
@@ -880,6 +876,7 @@ int main(int argc, char **argv)
        }
 
        fr_debug_lvl = L_DBG_LVL_1;
+       secret = NULL;
 
        while ((c = getopt(argc, argv, "d:D:hi:e:Ef:n:qs:S:x")) != -1) switch (c) {
                case 'd':