From: Alan T. DeKok Date: Thu, 22 Nov 2018 16:25:54 +0000 (-0500) Subject: add ntohl X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8867505cfbb8ceaf6edae7217d18ae3a262ced0;p=thirdparty%2Ffreeradius-server.git add ntohl --- diff --git a/src/modules/proto_dhcpv4/proto_dhcpv4.c b/src/modules/proto_dhcpv4/proto_dhcpv4.c index 53f49e896a3..758795e2322 100644 --- a/src/modules/proto_dhcpv4/proto_dhcpv4.c +++ b/src/modules/proto_dhcpv4/proto_dhcpv4.c @@ -424,7 +424,7 @@ static ssize_t mod_encode(void const *instance, REQUEST *request, uint8_t *buffe } data_len = fr_dhcpv4_encode(buffer, buffer_len, - request->reply->code, original->xid, request->reply->vps); + request->reply->code, ntohl(original->xid), request->reply->vps); if (data_len < 0) { RPEDEBUG("Failed encoding DHCPV4 reply"); return -1;