From: Ted Lemon Date: Wed, 20 Oct 1999 20:09:17 +0000 (+0000) Subject: - Fix a stupid bug in the generic code that would cause values to be X-Git-Tag: BCTEL_SPECIAL_19991124~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d82813f833a4ce43037c68264232e1a32d0747e2;p=thirdparty%2Fdhcp.git - Fix a stupid bug in the generic code that would cause values to be stored off the end of the value array, resulting in an invalid argument return. --- diff --git a/omapip/generic.c b/omapip/generic.c index 8f1fcc101..ad63b9216 100644 --- a/omapip/generic.c +++ b/omapip/generic.c @@ -125,6 +125,7 @@ isc_result_t omapi_generic_set_value (omapi_object_t *h, (vm_new - g -> va_max) * sizeof *va); free (g -> values); g -> values = va; + g -> va_max = vm_new; } status = omapi_value_new (&g -> values [g -> nvalues], "omapi_generic_set_value");