gpgparsemail: Die on parse error (not abort).
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 6 Jun 2019 00:32:58 +0000 (09:32 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 6 Jun 2019 00:32:58 +0000 (09:32 +0900)
commitc13e459ffeffb8c5387c44b3c04bb92b7111a75b
treef29b803a4e19814013b8e051623a109bde415676
parent9bf650db022b6b65bbfa74c311cdc3e6b73d3b44
gpgparsemail: Die on parse error (not abort).

* tools/gpgparsemail.c (parse_message): Don't use ERRNO.
* tools/rfc822parse.c (transition_to_body): Return -1.
(transition_to_header, insert_header): Likewise.

--

GnuPG-bug-id: 1977
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tools/gpgparsemail.c
tools/rfc822parse.c