aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-01-23 14:37:51 +0000
committerWerner Koch <[email protected]>2015-01-23 14:37:51 +0000
commit3f6abb57a7b5e54b593c5775c8f7a07d61119705 (patch)
treef86ce57cb339c0d48d6f1fc9eae8740106356bca
parentgpg,sm: Remove unnecessary duplicated checks (diff)
downloadgnupg-3f6abb57a7b5e54b593c5775c8f7a07d61119705.tar.gz
gnupg-3f6abb57a7b5e54b593c5775c8f7a07d61119705.zip
gpgconf: Fix validity check for UINT32 values.
* tools/gpgconf-comp.c (option_check_validity): Enable check for UINT32. -- Reported-by: Günther Noack <[email protected]> This is actually a bug which inhibited the checking of values of type UINT32. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--tools/gpgconf-comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 86e67eb28..01c4135fa 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -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;