From: Nikos Mavrogiannopoulos Date: Fri, 21 Aug 2015 11:26:08 +0000 (+0200) Subject: _gnutls_hash() returns error code if any. X-Git-Tag: gnutls_3_5_0~729 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca2d2c97408a11df6cfb2f4205cf0e88e81f87f1;p=thirdparty%2Fgnutls.git _gnutls_hash() returns error code if any. Ideally we would like to eliminate any return codes from that function. However, since that's on exported API we cannot easily do without breaking the ABI. Reported by Benedikt Klotz. Resolves #28 --- diff --git a/lib/gnutls_hash_int.h b/lib/gnutls_hash_int.h index 93cfbc85b4..2e00b8c495 100644 --- a/lib/gnutls_hash_int.h +++ b/lib/gnutls_hash_int.h @@ -110,7 +110,7 @@ inline static int _gnutls_hash(digest_hd_st * handle, const void *text, size_t textlen) { if (textlen > 0) { - handle->hash(handle->handle, text, textlen); + return handle->hash(handle->handle, text, textlen); } return 0; }