Commit 97d52752 authored by Herbert Xu's avatar Herbert Xu Committed by Thomas Graf

[XFRM]: Fix inverted strcmp() test in xfrm_get_byname().

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c0bf12f
......@@ -357,7 +357,7 @@ static struct xfrm_algo_desc *xfrm_get_byname(struct xfrm_algo_desc *list,
return NULL;
for (i = 0; i < entries; i++) {
if (!strcmp(name, list[i].name))
if (strcmp(name, list[i].name))
continue;
if (list[i].available)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment