]> git.tuebingen.mpg.de Git - paraslash.git/commit
Be more careful on command exit.
authorAndre Noll <maan@systemlinux.org>
Mon, 21 Jan 2008 08:24:16 +0000 (09:24 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 Jan 2008 08:24:16 +0000 (09:24 +0100)
commit4a33aa7ad93857d0c6b5ea24983e12b1619b10c0
treed893c86f586266d993a24b69460c0251221f3a57
parent01cd3e6d1e3ebbb585d5dc9a4272633dc2eeb31d
Be more careful on command exit.

If the callback returned zero, there's nothing to do.
If it returned positive, we have to send out the result
buffer and must free it afterwards. Sending the buffer may
well lead to an error condition, so always check the return
value of the corresponding call to send_buffer(). Finally,
it the command handler returned a negative value, we have
to send an error message to the client which might give rise
to another error (if sending the errror message failed). In this
case, ignore the send errror and return the previous error value.
aft.c
attribute.c
blob.c