From 1eb4c7e1e9f6d521fac9928df8e4b4d05861e900 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Tue, 2 Jun 2009 14:13:14 +1000 Subject: [PATCH] --- yaml --- r: 148820 b: refs/heads/master c: aa07a6990f4b6a8ef9fc538dea55bac6f92255f2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/crypto/api.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index a7d0ff057c47..212cf6caf721 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a0cfae59f8381c5c670fce2cc3de70b35421f920 +refs/heads/master: aa07a6990f4b6a8ef9fc538dea55bac6f92255f2 diff --git a/trunk/crypto/api.c b/trunk/crypto/api.c index f500fb840be9..d5944f92b416 100644 --- a/trunk/crypto/api.c +++ b/trunk/crypto/api.c @@ -217,14 +217,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) alg = crypto_alg_lookup(name, type, mask); if (!alg) { - char tmp[CRYPTO_MAX_ALG_NAME]; - - request_module(name); + request_module("%s", name); if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask & - CRYPTO_ALG_NEED_FALLBACK) && - snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp)) - request_module(tmp); + CRYPTO_ALG_NEED_FALLBACK)) + request_module("%s-all", name); alg = crypto_alg_lookup(name, type, mask); }