diff --git a/src/internal.c b/src/internal.c index 1e61e3a54..aa1eb9a3a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -9098,7 +9098,7 @@ int SetCipherList(Suites* s, const char* list) return BUFFER_ERROR; if (i + b > totalSz) return INCOMPLETE_DATA; - if (ssl->ctx->CBIORecv == NULL) { + if (ssl->ctx->CBIOCookie == NULL) { CYASSL_MSG("Your Cookie callback is null, please set"); return COOKIE_ERROR; } @@ -9413,7 +9413,7 @@ int SetCipherList(Suites* s, const char* list) output[idx++] = ssl->chVersion.minor; output[idx++] = cookieSz; - if (ssl->ctx->CBIORecv == NULL) { + if (ssl->ctx->CBIOCookie == NULL) { CYASSL_MSG("Your Cookie callback is null, please set"); return COOKIE_ERROR; }