@@ -17,11 +17,10 @@ * */ #include "tlsInt.h" - /* * Forward declarations */ static int TlsBlockModeProc (ClientData instanceData, int mode); #if TCL_MAJOR_VERSION < 9 @@ -83,11 +82,11 @@ * against an older variant. */ size = sizeof(Tcl_ChannelType); /* Base size */ tlsChannelType = (Tcl_ChannelType *) ckalloc(size); - memset((void *) tlsChannelType, 0, size); + memset(tlsChannelType, 0, size); /* * Common elements of the structure (no changes in location or name) * close2Proc, seekProc, setOptionProc stay NULL. */ @@ -849,16 +848,17 @@ return 0; } dprintf("Calling Tls_WaitForConnect"); errorCode = 0; - if (Tls_WaitForConnect(statePtr, &errorCode, 1) < 0) { if (errorCode == EAGAIN) { dprintf("Async flag could be set (didn't check) and errorCode == EAGAIN: Returning 0"); + return 0; } + dprintf("Tls_WaitForConnect returned an error"); } dprintf("Returning %i", mask);