]> git.pond.sub.org Git - empserver/commit
Saner error handling in typed_wu()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Nov 2011 14:14:36 +0000 (15:14 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:06 +0000 (11:47 +0100)
commit9f9cbfb20cb7b78e8a00cec6451e7686343084fe
treef288c60667e027c81227074a25543c019b6a5da5
parent0b2b51bbcbc86991c0e9db086ba62727788c149a
Saner error handling in typed_wu()

Leave nat_ann, nat_tgm alone and return -1 on all errors.  Before,
only failed open was handled that way.  Failed write and close were
logged and ignored.  While there, improve the log messages a bit.

Note: the return value fix has little effect.  It makes tele() log the
failure, which is redundant.  Everything else goes through wu() and
ignores the value.
src/lib/subs/wu.c