diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-02-12 14:28:01 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-02-12 14:28:01 +0000 |
commit | 207f4bc2311df4b4a9b261fd6cc316e9a78215b7 (patch) | |
tree | b974ebe8e196f0f1b630b568b86f7c0a85be0ad5 | |
parent | bca14b7bf1dd4cbfd0883b6878894221c48036a0 (diff) |
Correctly handle comments at the beginning of an assertion (noted by
ho@openbsd.org)
-rw-r--r-- | lib/libkeynote/parse_assertion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libkeynote/parse_assertion.c b/lib/libkeynote/parse_assertion.c index 03110545e22..ea6f7199bc6 100644 --- a/lib/libkeynote/parse_assertion.c +++ b/lib/libkeynote/parse_assertion.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_assertion.c,v 1.7 1999/11/03 19:52:22 angelos Exp $ */ +/* $OpenBSD: parse_assertion.c,v 1.8 2000/02/12 14:28:00 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -420,6 +420,7 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) if (as->as_startofsignature == (char *) NULL) as->as_startofsignature = ks; + /* This catches comments at the begining of an assertion only */ if (as->as_buf[i] == '#') /* Comment */ { seen_field = 1; @@ -428,6 +429,7 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) while ((i< j) && as->as_buf[++i] != '\n') ; + i++; continue; /* Loop */ } |