The gencache parse function dcinfo_parser() used by
wb_dsgetdcname_gencache_get() misses a check for expired gencache
entries.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct dcinfo_parser_state *state = private_data;
enum ndr_err_code ndr_err;
+ if (timeout <= time(NULL)) {
+ return;
+ }
+
state->dcinfo = talloc(state->mem_ctx, struct netr_DsRGetDCNameInfo);
if (state->dcinfo == NULL) {
state->status = NT_STATUS_NO_MEMORY;