]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use new definition for Original-Packet-Code
authorAlan T. DeKok <aland@freeradius.org>
Sun, 22 Oct 2017 13:16:11 +0000 (09:16 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 22 Oct 2017 13:16:11 +0000 (09:16 -0400)
src/modules/rlm_radius/rlm_radius_udp.c

index 3ee67fa771c7175deeaa1325b86569bb09fddc10..6c4479792cade5ec58fd5deba9bcf9244113ff6e 100644 (file)
@@ -875,8 +875,7 @@ redo:
                     attr < end;
                     attr += attr[1]) {
                        /*
-                        *      @todo - fix dict2header code to handle
-                        *      extended OIDs
+                        *      Must be an extended attribute.
                         */
                        if (attr[0] != FR_EXTENDED_ATTRIBUTE_1) continue;
 
@@ -886,10 +885,9 @@ redo:
                        if (attr[1] != 7) continue;
 
                        /*
-                        *      @todo - fix dict2header code to handle
-                        *      extended OIDs
+                        *      See if there's an original packet code.
                         */
-                       if (attr[2] != 4) continue;
+                       if (attr[2] != FR_ORIGINAL_PACKET_CODE) continue;
 
                        /*
                         *      Has to be an 8-bit number.