]> git.ozlabs.org Git - ccan/commit
rfc822: Fix bug parsing headers when body begins with linear whitespace
authorDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jun 2012 05:34:23 +0000 (15:34 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jun 2012 05:34:23 +0000 (15:34 +1000)
commit79831fda0048ef7c6aef6db05dcb4338fa0e4314
tree9db3a49fb47d5ceba76ca371fee677ad862b6b91
parent07962f1c3f6f2916f412b95b28513314294aba2e
rfc822: Fix bug parsing headers when body begins with linear whitespace

next_header_parse() had a bug which would mis-parse an extra header if the
body of the message began with a linear whitespace character (space or
tab).  This patch fixes it and adds a suitable testcase.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/rfc822/rfc822.c
ccan/rfc822/test/testdata.h