tls: make ctx_write function return the length of enqueue 76/26476/3
authorSimon Zhang <yuwei1.zhang@intel.com>
Sat, 11 Apr 2020 11:09:03 +0000 (19:09 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Sat, 11 Apr 2020 18:10:25 +0000 (18:10 +0000)
Type: fix

Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Change-Id: Ia8656fe2c48799e53c1b2c064009848ad3457659

src/plugins/tlspicotls/tls_picotls.c

index 5818144..d474b7b 100644 (file)
@@ -514,7 +514,7 @@ picotls_ctx_write (tls_ctx_t * ctx, session_t * app_session,
   if (ctx->app_closed)
     picotls_app_close (ctx);
 
-  return 0;
+  return to_tls_len;
 }
 
 static int