gpgconf: Fix validity check for UINT32 values.
authorWerner Koch <wk@gnupg.org>
Fri, 23 Jan 2015 14:37:51 +0000 (15:37 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 23 Jan 2015 14:37:51 +0000 (15:37 +0100)
* tools/gpgconf-comp.c (option_check_validity): Enable check for
UINT32.
--

Reported-by: G√ľnther Noack <gnoack@google.com>
This is actually a bug which inhibited the checking of values of type
UINT32.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpgconf-comp.c

index 86e67eb..01c4135 100644 (file)
@@ -2365,7 +2365,7 @@ option_check_validity (gc_option_t *option, unsigned long flags,
            gc_error (1, 0, "garbage after argument for option %s",
                      option->name);
        }
-      else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_INT32)
+      else if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_UINT32)
        {
          unsigned long res;