fix decoding of client ethernet address (by mino98)
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Jul 2013 21:32:06 +0000 (22:32 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Jul 2013 21:32:39 +0000 (22:32 +0100)
src/modules/proto_dhcp/dhcp.c

index c70ee9f..bd17918 100644 (file)
@@ -558,6 +558,11 @@ static int fr_dhcp_attr2vp(RADIUS_PACKET *packet, VALUE_PAIR *vp, uint8_t const
                q[alen] = '\0';
                break;
 
+       case PW_TYPE_ETHERNET:
+               memcpy(vp->vp_ether, p, sizeof(vp->vp_ether));
+               vp->length = sizeof(vp->vp_ether);
+               break;
+
        /*
         *      Value doesn't match up with attribute type, overwrite the
         *      vp's original DICT_ATTR with an unknown one.