Skip to content

Commit

Permalink
More short fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 16, 2015
1 parent 2921127 commit af6edca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/proto_dhcp/dhcp.c
Expand Up @@ -1308,7 +1308,7 @@ int fr_dhcp_decode(RADIUS_PACKET *packet)
/*
* Reply should be broadcast.
*/
if (vp) vp->vp_integer |= 0x8000;
if (vp) vp->vp_short |= 0x8000;
packet->data[10] |= 0x80;
}
}
Expand Down Expand Up @@ -1725,8 +1725,8 @@ int fr_dhcp_encode(RADIUS_PACKET *packet)

/* DHCP-Flags */
if ((vp = fr_pair_find_by_num(packet->vps, 262, DHCP_MAGIC_VENDOR, TAG_ANY))) {
lvalue = htons(vp->vp_integer);
memcpy(p, &lvalue, 2);
svalue = htons(vp->vp_short);
memcpy(p, &svalue, 2);
}
p += 2;

Expand Down

0 comments on commit af6edca

Please sign in to comment.