upstream patch from https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/1af1acd81c6c42a838533316a7cce5b2af2315d0