These values would have leaked in the event of failure (but only onto
the caller mem_ctx, which might be fleeting -- especially as its
security token is now failing).
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
}
}
- value = talloc(mem_ctx, int64_t);
+ value = talloc(claims, int64_t);
if (value == NULL) {
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
}
- value = talloc(mem_ctx, uint64_t);
+ value = talloc(claims, uint64_t);
if (value == NULL) {
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;