mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
dirmngr: fix LDAP query PATTERNS limit check.
* dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation. -- Reported-by: Joshua Rogers <honey@internot.info> Debian-Bug-Id: 773507
This commit is contained in:
parent
602f17b5a7
commit
22b15fccff
@ -588,7 +588,7 @@ start_cert_fetch_ldap (ctrl_t ctrl, cert_fetch_context_t *context,
|
|||||||
strlist_t sl;
|
strlist_t sl;
|
||||||
char *url;
|
char *url;
|
||||||
|
|
||||||
if (argc >= sizeof argv -1)
|
if (argc >= DIM (argv) - 1)
|
||||||
{
|
{
|
||||||
/* Too many patterns. It does not make sense to allow an
|
/* Too many patterns. It does not make sense to allow an
|
||||||
arbitrary number of patters because the length of the
|
arbitrary number of patters because the length of the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user