summaryrefslogtreecommitdiffstats
path: root/lib/libkeynote/parse_assertion.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2000-02-12 14:28:00 +0000
committerangelos <angelos@openbsd.org>2000-02-12 14:28:00 +0000
commitde098062ce70c62074d91a056a33c99b41fe039c (patch)
tree9dbe48658ddd7d2105d507473dae666916d85b1a /lib/libkeynote/parse_assertion.c
parenthandle direct lines correctly; rees (diff)
downloadwireguard-openbsd-de098062ce70c62074d91a056a33c99b41fe039c.tar.xz
wireguard-openbsd-de098062ce70c62074d91a056a33c99b41fe039c.zip
Correctly handle comments at the beginning of an assertion (noted by
ho@openbsd.org)
Diffstat (limited to 'lib/libkeynote/parse_assertion.c')
-rw-r--r--lib/libkeynote/parse_assertion.c4
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 */
}