]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Fix a stupid bug in the generic code that would cause values to be
authorTed Lemon <source@isc.org>
Wed, 20 Oct 1999 20:09:17 +0000 (20:09 +0000)
committerTed Lemon <source@isc.org>
Wed, 20 Oct 1999 20:09:17 +0000 (20:09 +0000)
  stored off the end of the value array, resulting in an invalid
  argument return.

omapip/generic.c

index 8f1fcc1010085234e0be0ceffb173708b9abaf18..ad63b9216518bebd922a280dffcc769001d35e7f 100644 (file)
@@ -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");