From: Ted Lemon Date: Fri, 29 Sep 2000 18:22:05 +0000 (+0000) Subject: Byte-swap incoming integer data. X-Git-Tag: V3-BETA-2-PATCH-6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b1ebcf0592838c7d66e6405c4c611ceff402b7;p=thirdparty%2Fdhcp.git Byte-swap incoming integer data. --- diff --git a/server/omapi.c b/server/omapi.c index d0292cf2d..bdebd122e 100644 --- a/server/omapi.c +++ b/server/omapi.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: omapi.c,v 1.36 2000/09/27 23:37:44 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: omapi.c,v 1.37 2000/09/29 18:22:05 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -769,6 +769,7 @@ isc_result_t dhcp_host_set_value (omapi_object_t *h, memcpy (&type, value -> u.buffer.value, value -> u.buffer.len); + type = ntohl (type); } else if (value -> type == omapi_datatype_int) type = value -> u.integer; else