]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fips140: corrected hex decoding
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 31 Jul 2015 12:30:00 +0000 (14:30 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 31 Jul 2015 12:30:00 +0000 (14:30 +0200)
lib/fips.c

index e5028d958fb563306cd29fbf751d05cf7083ff93..4233485e4ce3316b8b87881fb8911d87c25ae691 100644 (file)
@@ -225,8 +225,8 @@ static unsigned check_binary_integrity(const char* libname, const char* symbol)
                }
        }
 
-       hmac_size = hex_data_size(data->size);
-       ret = gnutls_hex_decode(&data, hmac, hmac_size);
+       hmac_size = hex_data_size(data.size);
+       ret = gnutls_hex_decode(&data, hmac, &hmac_size);
        gnutls_free(data.data);
 
        if (ret < 0) {