net: fix bad return value of mars_send_raw()

This commit is contained in:
Thomas Schoebel-Theuer 2013-04-15 14:20:59 +02:00
parent 5fc2fa0adb
commit 0f6c98ae4d

View File

@ -421,7 +421,7 @@ int _mars_send_raw(struct mars_socket *msock, const void *buf, int len)
sleeptime = 1000 / HZ;
}
if (sent > 0)
if (status >= 0)
status = sent;
return status;