diff options
author | Werner Koch <[email protected]> | 2002-03-18 09:30:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-03-18 09:30:35 +0000 |
commit | c39b866d2a0396b18560f4eff069299bd30415ec (patch) | |
tree | 7d2c7a08a88f16749f064e78c5bdc6004ac5fa53 /agent/learncard.c | |
parent | * decrypt.c (gpgsm_decrypt): Allow multiple recipients. (diff) | |
download | gnupg-c39b866d2a0396b18560f4eff069299bd30415ec.tar.gz gnupg-c39b866d2a0396b18560f4eff069299bd30415ec.zip |
Doc fixes, moved some fizmes to TODO, fixed minor bugs.
Diffstat (limited to 'agent/learncard.c')
-rw-r--r-- | agent/learncard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/agent/learncard.c b/agent/learncard.c index 4cd1cb848..fe3e9eff3 100644 --- a/agent/learncard.c +++ b/agent/learncard.c @@ -84,7 +84,7 @@ kpinfo_cb (void *opaque, const char *line) p++; } else if ((p - item->hexgrip) != 40 || !spacep (p)) - { /* not a 20 byte hex keygrip or now followed by a space */ + { /* not a 20 byte hex keygrip or not followed by a space */ parm->error = GNUPG_Invalid_Response; xfree (item); return; @@ -93,9 +93,9 @@ kpinfo_cb (void *opaque, const char *line) while (spacep (p)) p++; item->id = p; - for (; hexdigitp (p) || *p == '.'; p++) - ; - if (!(spacep (p) || !*p)) + while (*p && !spacep (p)) + p++; + if (p == item->id) { /* invalid ID string */ parm->error = GNUPG_Invalid_Response; xfree (item); |