]> git.ozlabs.org Git - ccan/commitdiff
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)
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>

No differences found