Return CBIO_ERR_GENERAL in callbacks

pull/365/head
Jeremiah Mackey 2026-05-04 14:14:27 +00:00
parent cb2b0f602c
commit 76cbb27805
2 changed files with 4 additions and 4 deletions

View File

@ -1117,7 +1117,7 @@ int NativeIORecvCb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
"NativeIORecvCb"); "NativeIORecvCb");
if (needsDetach) if (needsDetach)
(*g_vm)->DetachCurrentThread(g_vm); (*g_vm)->DetachCurrentThread(g_vm);
return 0; return WOLFSSL_CBIO_ERR_GENERAL;
} }
/* lookup WolfSSLSession class from object */ /* lookup WolfSSLSession class from object */
@ -1329,7 +1329,7 @@ int NativeIOSendCb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
"NativeIOSendCb"); "NativeIOSendCb");
if (needsDetach) if (needsDetach)
(*g_vm)->DetachCurrentThread(g_vm); (*g_vm)->DetachCurrentThread(g_vm);
return 0; return WOLFSSL_CBIO_ERR_GENERAL;
} }
/* lookup WolfSSLSession class from object */ /* lookup WolfSSLSession class from object */

View File

@ -6613,7 +6613,7 @@ int NativeSSLIORecvCb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
if (needsDetach) { if (needsDetach) {
(*g_vm)->DetachCurrentThread(g_vm); (*g_vm)->DetachCurrentThread(g_vm);
} }
return 0; return WOLFSSL_CBIO_ERR_GENERAL;
} }
/* Detect if we should use ByteBuffer or byte[] I/O callbacks */ /* Detect if we should use ByteBuffer or byte[] I/O callbacks */
@ -6789,7 +6789,7 @@ int NativeSSLIOSendCb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
if (needsDetach) { if (needsDetach) {
(*g_vm)->DetachCurrentThread(g_vm); (*g_vm)->DetachCurrentThread(g_vm);
} }
return 0; return WOLFSSL_CBIO_ERR_GENERAL;
} }
/* Detect if we should use ByteBuffer or byte[] I/O callbacks */ /* Detect if we should use ByteBuffer or byte[] I/O callbacks */