dirmngr: fix LDAP query PATTERNS limit check.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 7 Jan 2015 07:56:43 +0000 (16:56 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 7 Jan 2015 07:56:43 +0000 (16:56 +0900)
* dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation.

--

Reported-by: Joshua Rogers <honey@internot.info>
Debian-Bug-Id: 773507

dirmngr/ldap.c

index 478fdfd..00df167 100644 (file)
@@ -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