kadmin: kadmind_dispatch free 'ks_tuple' before overwriting

Change-Id: I8719c610a34ca128cc8a0b3d7f94dafc26b21e01
This commit is contained in:
Jeffrey Altman
2022-01-17 00:16:27 -05:00
parent 6fc38099f7
commit 63f9fc172c

View File

@@ -537,7 +537,7 @@ kadmind_dispatch(void *kadm_handlep, krb5_boolean initial,
ret = EOVERFLOW;
goto fail;
}
free(ks_tuple);
if ((ks_tuple = calloc(n_ks_tuple, sizeof (*ks_tuple))) == NULL) {
ret = errno;
goto fail;