]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize packet_len, not data_size
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jan 2018 16:42:02 +0000 (11:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jan 2018 16:42:02 +0000 (11:42 -0500)
src/modules/proto_radius/proto_radius_udp.c

index 9d9c42d65fade2ef1f1f9fad63e869c80581840b..5103c58d3ca33adb04b0fd5eeb215d5f225f5aae 100644 (file)
@@ -780,13 +780,13 @@ static ssize_t mod_read(void *instance, void **packet_ctx, fr_time_t **recv_time
                }
 
                memcpy(buffer, inst->child.packet, inst->child.packet_len);
-               data_size = inst->child.packet_len;
 
                address.code = buffer[0];
                address.id = buffer[1];
 
                inst->child.packet = NULL;
                packet_time = inst->child.recv_time;
+               packet_len = inst->child.packet_len;
                goto connected;
        }