From 9f962c2ff75ed03c3727d808b83f1e89bdbf19a5 Mon Sep 17 00:00:00 2001 From: mrcsys Date: Mon, 15 May 2006 13:54:25 +0000 Subject: Fixed one log message to make fore sense. Fixed check of SSL_read return code, was not correct. --- nanohttp/nanohttp-ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nanohttp/nanohttp-ssl.c') diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c index 34c00c9..5a08486 100644 --- a/nanohttp/nanohttp-ssl.c +++ b/nanohttp/nanohttp-ssl.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-ssl.c,v 1.26 2006/05/15 06:40:47 m0gg Exp $ +* $Id: nanohttp-ssl.c,v 1.27 2006/05/15 13:54:25 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2001-2005 Rochester Institute of Technology @@ -524,7 +524,7 @@ hssl_read(hsocket_t * sock, char *buf, size_t len, size_t * received) if (sock->ssl) { - if ((count = SSL_read(sock->ssl, buf, len)) == -1) + if ((count = SSL_read(sock->ssl, buf, len)) < 1) return herror_new("SSL_read", HSOCKET_ERROR_RECEIVE, "SSL_read failed (%s)", _hssl_get_error(sock->ssl, count)); -- cgit v1.1-32-gdbae