summaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
diff options
context:
space:
mode:
authorRuss Dill2002-12-11 21:40:46 +0000
committerRuss Dill2002-12-11 21:40:46 +0000
commit9f4395c54e9e5507f2a59643f62bb42ef2601aab (patch)
treedff384f34afa3444d0eb9478df78185d05c79b75 /networking/udhcp/options.c
parent920c1e8d6ca1db73366caaaf14abf242f2b851d3 (diff)
downloadbusybox-9f4395c54e9e5507f2a59643f62bb42ef2601aab.zip
busybox-9f4395c54e9e5507f2a59643f62bb42ef2601aab.tar.gz
sorry about all the noise, should be all synced up now
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r--networking/udhcp/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 5814472..9f95c15 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
DEBUG(LOG_INFO, "Attaching option %s to list", option->name);
/* make a new option */
- new = malloc(sizeof(struct option_set));
- new->data = malloc(length + 2);
+ new = xmalloc(sizeof(struct option_set));
+ new->data = xmalloc(length + 2);
new->data[OPT_CODE] = option->code;
new->data[OPT_LEN] = length;
memcpy(new->data + 2, buffer, length);