Backport upstream commit f3eee5861743d635 to fix a crash triggered when debuginfod makes use of particular openssl settings.