freeipa/daemons/ipa-otpd
Alexander Bokovoy ad8f90f816 ipa-otpd: initialize local pointers and handle gcc 10
oauth2_on_child_readable() does not use the main verto context and used
to drop the argument name to signify that. This is a feature of C2X
standard by default and is not enabled in gcc before 11 by default (it
is enabled in RHEL 8's gcc 8.5).

Add a simple 'if the context is missing, get out' code to use 'ctx'.
This allows to avoid enabling C2X features.

Initialize local pointers to prevent use before initialization on exit
paths in abnormal situations as well.

Fixes: https://pagure.io/freeipa/issue/9230

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
2022-08-29 17:34:20 +02:00
..
bind.c ipa-otpd: handle LDAP timeout in a better way 2021-04-23 11:13:36 +03:00
forward.c Add the krb5/FreeIPA RADIUS companion daemon 2013-05-17 09:30:51 +02:00
internal.h ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
ipa_otpd_queue_cmocka_tests.c Add cmocka unit tests for ipa otpd queue code 2018-08-31 21:01:46 +02:00
ipa-otpd.socket.in ipa-otpd.socket.in: Use a platform specific value for KDC service file 2017-04-12 16:17:51 +02:00
ipa-otpd@.service.in systemd: enforce en_US.UTF-8 locale in systemd units 2020-12-10 14:38:05 +02:00
main.c ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
Makefile.am ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
oauth2.c ipa-otpd: initialize local pointers and handle gcc 10 2022-08-29 17:34:20 +02:00
parse.c ipa-otpd: initialize local pointers and handle gcc 10 2022-08-29 17:34:20 +02:00
query.c ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
queue.c ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
stdio.c ipa-otpd: add support for SSSD OIDC helper 2022-05-10 15:52:41 +03:00
test.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00