aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-02-23 19:52:20 +0000
committerDavid Shaw <[email protected]>2006-02-23 19:52:20 +0000
commit1736866b5b378b134ce2268aa42a360677533a51 (patch)
treeef1624f15ca4d751e2a2a6631f3755e905337d46
parent* options.h, keyserver.c (add_canonical_option): New. (diff)
downloadgnupg-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/ChangeLog3
-rw-r--r--g10/gpg.c2
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
diff --git a/g10/gpg.c b/g10/gpg.c
index e748ee06e..92b274ba4 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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"