mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
lib: Fix CID 1441264 Error handling issues (CHECKED_RETURN)
This is not worth keeping a CID around :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0872f140c4
commit
da1d7af1a7
@ -130,10 +130,16 @@ static int gencache_prune_expired_fn(struct tdb_context *tdb,
|
||||
}
|
||||
|
||||
if (!ok || expired) {
|
||||
/*
|
||||
* Ignore failure, this is "just" background cleanup
|
||||
*/
|
||||
strv_add(state->mem_ctx, &state->keys, (char *)key.dptr);
|
||||
int ret;
|
||||
|
||||
ret = strv_add(state->mem_ctx, &state->keys, (char *)key.dptr);
|
||||
if (ret != 0) {
|
||||
/*
|
||||
* Exit the loop. It's unlikely that it will
|
||||
* succeed next time.
|
||||
*/
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user