]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize lowest number to ~0, so we pick a real lowest number
authorAlan T. DeKok <aland@freeradius.org>
Thu, 20 Apr 2017 14:56:09 +0000 (10:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 20 Apr 2017 14:56:09 +0000 (10:56 -0400)
src/main/unlang_interpret.c

index c6b4f83269ad5943a0f504a95ac176a8be41d3cf..43812a777e53e8e8cdc195fef8c7dcb68b5f89a1 100644 (file)
@@ -246,7 +246,7 @@ static unlang_action_t unlang_load_balance(REQUEST *request, unlang_stack_t *sta
                        uint64_t lowest_active_callers;
 
                randomly_choose:
-                       lowest_active_callers = 0;
+                       lowest_active_callers = ~(uint64_t ) 0;
 
                        /*
                         *      Choose a child at random.