diff options
author | David Shaw <[email protected]> | 2006-02-23 19:52:20 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-02-23 19:52:20 +0000 |
commit | 1736866b5b378b134ce2268aa42a360677533a51 (patch) | |
tree | ef1624f15ca4d751e2a2a6631f3755e905337d46 | |
parent | * options.h, keyserver.c (add_canonical_option): New. (diff) | |
download | gnupg-1736866b5b378b134ce2268aa42a360677533a51.tar.gz gnupg-1736866b5b378b134ce2268aa42a360677533a51.zip |
* gpg.c (add_notation_data): Fix reversed logic for isascii check when
adding notations. Noted by Christian Biere.
-rw-r--r-- | g10/ChangeLog | 3 | ||||
-rw-r--r-- | g10/gpg.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 77b05a6a1..8a87e1a16 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2006-02-23 David Shaw <[email protected]> + * gpg.c (add_notation_data): Fix reversed logic for isascii check + when adding notations. Noted by Christian Biere. + * options.h, keyserver.c (add_canonical_option): New. (parse_keyserver_options): Moved from here. (parse_keyserver_uri): Use it here so each keyserver can have some @@ -4029,7 +4029,7 @@ add_notation_data( const char *string, int which ) /* we only support printable text - therefore we enforce the use * of only printable characters (an empty value is valid) */ for( s++; *s ; s++ ) { - if ( isascii (*s) ) + if ( !isascii (*s) ) highbit = 1; else if (iscntrl(*s)) { log_error(_("a notation value must not use" |