From 3ad9d48f8c27df784c1116b9df61ccb0baf84e81 Mon Sep 17 00:00:00 2001 From: Shane Kerr Date: Thu, 4 Oct 2007 12:14:42 +0000 Subject: [PATCH] Bug in decoding certain options fixed. See RT ticket #17188 for more. --- RELNOTES | 3 +++ common/options.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELNOTES b/RELNOTES index 9770b64d..9417be7b 100644 --- a/RELNOTES +++ b/RELNOTES @@ -74,6 +74,9 @@ suggested fixes to . - Compilation with DLPI and -Werror has been repaired. +- Error in decoding IA_NA option if multiple interfaces are present + fixed by Marcus Goller. + Changes since 4.0.0a2 - Fix for startup where there are no IPv4 addresses on an interface. diff --git a/common/options.c b/common/options.c index eb5f83c1..28f3ebcb 100644 --- a/common/options.c +++ b/common/options.c @@ -244,7 +244,7 @@ int parse_option_buffer (options, buffer, length, universe) nop->data.buffer = NULL; buffer_reference(&nop->data.buffer, bp, MDL); - nop->data.data = bp->data; + nop->data.data = bp->data + offset; nop->data.len = len; option_cache_reference(&op->next, nop, MDL);