summaryrefslogtreecommitdiff
path: root/net/isc-dhcp31-server/files/patch-common::parse.c
blob: 637d69e7f41b9cb2552b0015a758561bdc54c04d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);
 }