diff options
Diffstat (limited to 'net/xfrm/xfrm_algo.c')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 04e1aea58bc9..b68974b38741 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -359,7 +359,8 @@ static struct xfrm_algo_desc *xfrm_get_byname(struct xfrm_algo_desc *list, | |||
359 | return NULL; | 359 | return NULL; |
360 | 360 | ||
361 | for (i = 0; i < entries; i++) { | 361 | for (i = 0; i < entries; i++) { |
362 | if (strcmp(name, list[i].name)) | 362 | if (strcmp(name, list[i].name) && |
363 | (!list[i].compat || strcmp(name, list[i].compat))) | ||
363 | continue; | 364 | continue; |
364 | 365 | ||
365 | if (list[i].available) | 366 | if (list[i].available) |