server: safeguard error handling

This commit is contained in:
Thomas Schoebel-Theuer 2013-04-15 14:21:07 +02:00
parent 0f6c98ae4d
commit b7f1e97def

View File

@ -77,6 +77,7 @@ int cb_thread(void *data)
status = -EINVAL;
CHECK_PTR(mref, err);
status = 0;
if (!aborted) {
down(&brick->socket_sem);
status = mars_send_cb(sock, mref);