]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
copy to packet data
authorAlan T. DeKok <aland@freeradius.org>
Mon, 1 May 2017 18:48:47 +0000 (14:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 1 May 2017 18:48:47 +0000 (14:48 -0400)
src/lib/util/radius.c

index db6e68e1c44986e7e5712fdcb82be42011f8ac3c..4c23e76db9b3d5522d248885b4fd9c281d4f1773 100644 (file)
@@ -546,7 +546,7 @@ int fr_radius_packet_sign(RADIUS_PACKET *packet, RADIUS_PACKET const *original,
         */
        if ((packet->code == PW_CODE_ACCESS_REQUEST) ||
            (packet->code == PW_CODE_STATUS_SERVER)) {
-               memcpy(packet + 4, packet->vector, sizeof(packet->vector));
+               memcpy(packet->data + 4, packet->vector, sizeof(packet->vector));
        }
 
        rcode = fr_radius_sign(packet->data, original_data,