]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_gnutls_hash() returns error code if any.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 21 Aug 2015 11:26:08 +0000 (13:26 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 21 Aug 2015 11:27:23 +0000 (13:27 +0200)
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

lib/gnutls_hash_int.h

index 93cfbc85b46f09dab3635ee99c746b10fb76b85a..2e00b8c495182479c8555bcd00f00e6c4fe62bab 100644 (file)
@@ -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;
 }