sorry about all the noise, should be all synced up now

This commit is contained in:
Russ Dill
2002-12-11 21:40:46 +00:00
parent 920c1e8d6c
commit 9f4395c54e
3 changed files with 19 additions and 3 deletions

View File

@@ -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);