Cleanup the wolfIO_Send function.
This commit is contained in:
parent
2c39219f2a
commit
932773735b
3
src/io.c
3
src/io.c
@ -572,9 +572,8 @@ int wolfIO_Recv(SOCKET_T sd, char *buf, int sz, int rdFlags)
|
||||
int wolfIO_Send(SOCKET_T sd, char *buf, int sz, int wrFlags)
|
||||
{
|
||||
int sent;
|
||||
int len = sz;
|
||||
|
||||
sent = (int)SEND_FUNCTION(sd, &buf[sz - len], len, wrFlags);
|
||||
sent = (int)SEND_FUNCTION(sd, buf, sz, wrFlags);
|
||||
sent = TranslateReturnCode(sent, sd);
|
||||
|
||||
return sent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user