diff options
Diffstat (limited to 'net/isc-dhcp3-server/files/patch-common::parse.c')
-rw-r--r-- | net/isc-dhcp3-server/files/patch-common::parse.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/isc-dhcp3-server/files/patch-common::parse.c b/net/isc-dhcp3-server/files/patch-common::parse.c new file mode 100644 index 000000000000..637d69e7f41b --- /dev/null +++ b/net/isc-dhcp3-server/files/patch-common::parse.c @@ -0,0 +1,22 @@ +--- common/parse.c.orig 2 Sep 2003 11:01:23 -0000 ++++ common/parse.c 22 Feb 2004 10:44:52 -0000 +@@ -414,6 +414,7 @@ + { + const char *val; + enum dhcp_token token; ++ int32_t num; + + token = next_token (&val, (unsigned *)0, cfile); + if (token != NUMBER) { +@@ -421,9 +422,9 @@ + skip_to_semi (cfile); + return; + } +- convert_num (cfile, (unsigned char *)timep, val, 10, 32); ++ convert_num (cfile, (unsigned char *)&num, val, 10, 32); + /* Unswap the number - convert_num returns stuff in NBO. */ +- *timep = ntohl (*timep); /* XXX */ ++ *timep = ntohl (num); + + parse_semi (cfile); + } |