mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-11 22:01:08 +02:00
dirmngr: Fix segfault in ldap engine
(ks-engine-ldap.c) Fix segfault caused by missing check whether uri is initialized
This commit is contained in:
parent
ac77e6254b
commit
d0d4984cfe
@ -306,7 +306,9 @@ ks_ldap_help (ctrl_t ctrl, parsed_uri_t uri)
|
|||||||
"Supported methods: search, get, put\n";
|
"Supported methods: search, get, put\n";
|
||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
|
|
||||||
if (strcmp (uri->scheme, "ldap") == 0
|
if(!uri)
|
||||||
|
err = ks_print_help (ctrl, " ldap");
|
||||||
|
else if (strcmp (uri->scheme, "ldap") == 0
|
||||||
|| strcmp (uri->scheme, "ldaps") == 0
|
|| strcmp (uri->scheme, "ldaps") == 0
|
||||||
|| strcmp (uri->scheme, "ldapi") == 0)
|
|| strcmp (uri->scheme, "ldapi") == 0)
|
||||||
err = ks_print_help (ctrl, data);
|
err = ks_print_help (ctrl, data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user