Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148820
b: refs/heads/master
c: aa07a69
h: refs/heads/master
v: v3
  • Loading branch information
Alex Riesen authored and Herbert Xu committed Jun 2, 2009
1 parent 06bd976 commit 1eb4c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0cfae59f8381c5c670fce2cc3de70b35421f920
refs/heads/master: aa07a6990f4b6a8ef9fc538dea55bac6f92255f2
9 changes: 3 additions & 6 deletions trunk/crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1eb4c7e

Please sign in to comment.