mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
gpgconf: Fix validity check for UINT32 values.
* 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> (cherry picked from commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705)
This commit is contained in:
parent
1298b14f97
commit
068ec6c8ed
@ -2249,7 +2249,7 @@ option_check_validity (gc_option_t *option, unsigned long flags,
|
|||||||
gc_error (1, 0, "garbage after argument for option %s",
|
gc_error (1, 0, "garbage after argument for option %s",
|
||||||
option->name);
|
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)
|
||||||
{
|
{
|
||||||
errno = 0;
|
errno = 0;
|
||||||
(void) strtoul (arg, &arg, 0);
|
(void) strtoul (arg, &arg, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user