X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=crypto%2Fshash.c;h=f507294f281198d35b41b1b3692bdad52c877745;hp=9100912716ae948fa57da13b9030a248f0460942;hb=4741b69849e0b01077becf6d2cb902dca9984d01;hpb=e25ba0ce039d1c5cae0b0057e4b9e228dc6744bd diff --git a/crypto/shash.c b/crypto/shash.c index 9100912716ae..f507294f2811 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -530,7 +530,8 @@ static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) struct crypto_report_hash rhash; struct shash_alg *salg = __crypto_shash_alg(alg); - snprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "shash"); + strncpy(rhash.type, "shash", sizeof(rhash.type)); + rhash.blocksize = alg->cra_blocksize; rhash.digestsize = salg->digestsize;