From 54875cb2be8401a6fe4cf392760635acdd19d099 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 7 Sep 2009 08:59:58 +0000 Subject: [PATCH] 2009-09-07 10:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbssl/hbssl.c ! Fixed wrong pointer references (reported by watcom). For some reason it wasn't fatal. (please review me) --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbssl/hbssl.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index c90448d57e..ad7a23a70b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-07 10:58 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbssl/hbssl.c + ! Fixed wrong pointer references (reported by watcom). + For some reason it wasn't fatal. + (please review me) + 2009-09-07 10:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/hbsocket.c + added support for setting non blocking IO mode in OpenWatcom OS2 diff --git a/harbour/contrib/hbssl/hbssl.c b/harbour/contrib/hbssl/hbssl.c index fb1241ddd1..a1e01940c2 100644 --- a/harbour/contrib/hbssl/hbssl.c +++ b/harbour/contrib/hbssl/hbssl.c @@ -82,7 +82,7 @@ HB_FUNC( HB_SSL_READ_ALL ) if( SSL_pending( ssl ) || hb_socketSelectRead( ( HB_SOCKET ) SSL_get_fd( ssl ), iTimeout ) ) { - iLen = SSL_read( ssl, &buffer, 1 ); + iLen = SSL_read( ssl, buffer, 1 ); if( iLen == SSL_ERROR_WANT_READ ) continue; @@ -151,7 +151,7 @@ HB_FUNC( HB_SSL_READ_LINE ) if( SSL_pending( ssl ) || hb_socketSelectRead( ( HB_SOCKET ) SSL_get_fd( ssl ), iTimeout ) ) { - iLen = SSL_read( ssl, &buffer, 1 ); + iLen = SSL_read( ssl, buffer, 1 ); if( iLen == SSL_ERROR_WANT_READ ) continue;