aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2015-01-07 07:56:43 +0000
committerNIIBE Yutaka <[email protected]>2015-01-07 07:56:43 +0000
commit22b15fccffe613f455f9748c048c8e451724a842 (patch)
tree3fa7b7105b2240c681d25664fb496f38f69024b2
parentscd: fix merge failure. (diff)
downloadgnupg-22b15fccffe613f455f9748c048c8e451724a842.tar.gz
gnupg-22b15fccffe613f455f9748c048c8e451724a842.zip
dirmngr: fix LDAP query PATTERNS limit check.
* dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation. -- Reported-by: Joshua Rogers <[email protected]> Debian-Bug-Id: 773507
Diffstat (limited to '')
-rw-r--r--dirmngr/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ldap.c b/dirmngr/ldap.c
index 478fdfda2..00df167e2 100644
--- a/dirmngr/ldap.c
+++ b/dirmngr/ldap.c
@@ -588,7 +588,7 @@ start_cert_fetch_ldap (ctrl_t ctrl, cert_fetch_context_t *context,
strlist_t sl;
char *url;
- if (argc >= sizeof argv -1)
+ if (argc >= DIM (argv) - 1)
{
/* Too many patterns. It does not make sense to allow an
arbitrary number of patters because the length of the