Skip to content

Commit 578f3c9

Browse files
Translate return code in wsEmbedSend.
1 parent 8a714b2 commit 578f3c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/io.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ int wsEmbedSend(WOLFSSH* ssh, void* data, word32 sz, void* ctx)
405405

406406
sent = (int)SEND_FUNCTION(sd, buf, sz, ssh->wflags);
407407

408+
sent = TranslateReturnCode(sent, sd);
409+
408410
WLOG(WS_LOG_DEBUG,"Embed Send sent %d", sent);
409411

410412
if (sent < 0) {

0 commit comments

Comments
 (0)