File 0001-dhcp-fixed-to-properly-append-dhcp-option-data.patch of Package wicked
From 8d8f73574d4b0dd6d6732a8063457874090b1142 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski <mt@suse.de> Date: Mon, 10 Oct 2016 17:09:01 +0200 Subject: [PATCH] dhcp: fixed to properly append dhcp option data diff --git a/src/dhcp.c b/src/dhcp.c index ed9e0cf..90081f4 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -80,8 +80,9 @@ ni_dhcp_option_append(ni_dhcp_option_t *opt, unsigned int len, unsigned char *da if (!newdata) return FALSE; - opt->len = newsize; + opt->data = newdata; memcpy(opt->data + opt->len, data, len); + opt->len = newsize; return TRUE; } -- 2.6.6