From bb103561aef582f6a85f99f48dc2c5e68af3c874 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 14 Mar 2013 09:16:47 -0700 Subject: [PATCH] fix non DTLS USER_IO cb --- src/internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index b7596b8ac..1bdbda1e3 100644 --- a/src/internal.c +++ b/src/internal.c @@ -376,7 +376,9 @@ int InitSSL_Ctx(CYASSL_CTX* ctx, CYASSL_METHOD* method) /* user will set */ ctx->CBIORecv = NULL; ctx->CBIOSend = NULL; - ctx->CBIOCookie = NULL; + #ifdef CYASSL_DTLS + ctx->CBIOCookie = NULL; + #endif #endif ctx->partialWrite = 0; ctx->verifyCallback = 0;