Correct args to memset
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:14:22 +0000 (15:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 20:14:22 +0000 (15:14 -0500)
src/modules/rlm_dhcp/rlm_dhcp.c

index 13b16ce..a3b8bf6 100644 (file)
@@ -124,7 +124,7 @@ static int dhcp_instantiate(CONF_SECTION *conf, void **instance)
        if (!inst) {
                return -1;
        }
-       memset(inst, 0, sizeof(inst));
+       memset(inst, 0, sizeof(*inst));
        
        xlat_register("dhcp_options", dhcp_options_xlat, inst);