diff options
author | russ <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-11 21:40:46 +0000 |
---|---|---|
committer | russ <russ@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-11 21:40:46 +0000 |
commit | 6cca9ba7fbb0de0804f7cb1015a9045934ffdcf8 (patch) | |
tree | dff384f34afa3444d0eb9478df78185d05c79b75 /networking/udhcp/options.c | |
parent | 896da2ac0c6bd5fb8691c6af03977edf55abce52 (diff) | |
download | busybox-w32-6cca9ba7fbb0de0804f7cb1015a9045934ffdcf8.tar.gz busybox-w32-6cca9ba7fbb0de0804f7cb1015a9045934ffdcf8.tar.bz2 busybox-w32-6cca9ba7fbb0de0804f7cb1015a9045934ffdcf8.zip |
sorry about all the noise, should be all synced up now
git-svn-id: svn://busybox.net/trunk/busybox@6178 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index 58144728e..9f95c1558 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c | |||
@@ -214,8 +214,8 @@ void attach_option(struct option_set **opt_list, struct dhcp_option *option, cha | |||
214 | DEBUG(LOG_INFO, "Attaching option %s to list", option->name); | 214 | DEBUG(LOG_INFO, "Attaching option %s to list", option->name); |
215 | 215 | ||
216 | /* make a new option */ | 216 | /* make a new option */ |
217 | new = malloc(sizeof(struct option_set)); | 217 | new = xmalloc(sizeof(struct option_set)); |
218 | new->data = malloc(length + 2); | 218 | new->data = xmalloc(length + 2); |
219 | new->data[OPT_CODE] = option->code; | 219 | new->data[OPT_CODE] = option->code; |
220 | new->data[OPT_LEN] = length; | 220 | new->data[OPT_LEN] = length; |
221 | memcpy(new->data + 2, buffer, length); | 221 | memcpy(new->data + 2, buffer, length); |