]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't need server_cs field
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 14 Feb 2021 23:12:53 +0000 (23:12 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 14 Feb 2021 23:12:53 +0000 (23:12 +0000)
src/modules/rlm_client/rlm_client.c

index 47d438031100073983b5f768f40c5b44ca7baaea..483bc330d4125821a0e60a97076a1ed2dcd64277 100644 (file)
@@ -318,13 +318,9 @@ static unlang_action_t CC_HINT(nonnull) mod_authorize(rlm_rcode_t *p_result, UNU
        /*
         *      Read the buffer and generate the client.
         */
-       if (request->client->server) {
-               server_cs = request->client->server_cs;
-       } else {
-               RETURN_MODULE_FAIL;
-       }
+       if (!request->client->server) RETURN_MODULE_FAIL;
 
-       c = client_read(buffer, request->server_cs, true);
+       c = client_read(buffer, request->client->server_cs;, true);
        if (!c) RETURN_MODULE_FAIL;
 
        /*