Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34241
b: refs/heads/master
c: 04ff126
h: refs/heads/master
i:
  34239: 887e9a7
v: v3
  • Loading branch information
Herbert Xu committed Sep 21, 2006
1 parent fff8ba0 commit 334baaa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 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: d1806f6a97a536b043fe50e6d8a25b061755cf50
refs/heads/master: 04ff12609445c7b462d7fc7f2d30dad442c922f3
1 change: 1 addition & 0 deletions trunk/include/net/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ struct xfrm_algo_comp_info {

struct xfrm_algo_desc {
char *name;
char *compat;
u8 available:1;
union {
struct xfrm_algo_auth_info auth;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/xfrm/xfrm_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ 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) &&
(!list[i].compat || strcmp(name, list[i].compat)))
continue;

if (list[i].available)
Expand Down
1 change: 1 addition & 0 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ static int attach_one_algo(struct xfrm_algo **algpp, u8 *props,
return -ENOMEM;

memcpy(p, ualg, len);
strcpy(p->alg_name, algo->name);
*algpp = p;
return 0;
}
Expand Down

0 comments on commit 334baaa

Please sign in to comment.