path: root/include/json.h
diff options
authorMarco Oliverio <>2021-05-13 16:10:32 +0200
committerPablo Neira Ayuso <>2021-05-14 01:30:09 +0200
commit3adb0316e2b5683acd0f93661a278f059a13cc5b (patch)
treea77ad7f8e7ea67e89ab011fadaf09e48828d5274 /include/json.h
parent95d7ace99240a6d28730741acaed999cb25f61a0 (diff)
cache: check errno before invoking cache_release()
if genid changes during cache_init(), check_genid() sets errno to EINTR to force a re-init of the cache. cache_release() may inadvertly change errno by calling free(). Indeed free() may invoke madvise() that changes errno to ENOSYS on system where kernel is configured without support for this syscall. Signed-off-by: Marco Oliverio <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/json.h')
0 files changed, 0 insertions, 0 deletions