From 36f62a57076a679eb62a119e37973326b500dd8c Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 4 Feb 2013 14:11:20 -0800 Subject: [PATCH] fix CyaSSL_write memory error return, bump dev version --- configure.ac | 2 +- cyassl/version.h | 4 ++-- src/internal.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9d26e009b..727e838a3 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ # # -AC_INIT([cyassl],[2.5.0],[http://www.yassl.com]) +AC_INIT([cyassl],[2.5.1],[http://www.yassl.com]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/cyassl/version.h b/cyassl/version.h index c76405051..568509dda 100644 --- a/cyassl/version.h +++ b/cyassl/version.h @@ -26,8 +26,8 @@ extern "C" { #endif -#define LIBCYASSL_VERSION_STRING "2.5.0" -#define LIBCYASSL_VERSION_HEX 0x02005000 +#define LIBCYASSL_VERSION_STRING "2.5.1" +#define LIBCYASSL_VERSION_HEX 0x02005001 #ifdef __cplusplus } diff --git a/src/internal.c b/src/internal.c index ef6755094..0e371eca7 100644 --- a/src/internal.c +++ b/src/internal.c @@ -4716,7 +4716,7 @@ int SendData(CYASSL* ssl, const void* data, int sz) /* check for avalaible size */ if ((ret = CheckAvalaibleSize(ssl, len + COMP_EXTRA + MAX_MSG_EXTRA)) != 0) - return ret; + return ssl->error = ret; /* get ouput buffer */ out = ssl->buffers.outputBuffer.buffer +