Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362579
b: refs/heads/master
c: 06848c1
h: refs/heads/master
i:
  362577: dacacbd
  362575: 34f997f
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Apr 15, 2013
1 parent 951ba37 commit 5c30052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 8f3359bdc83f1abb1989e0817ab0e0b18667c828
refs/heads/master: 06848c10f720cbc20e3b784c0df24930b7304b93
6 changes: 3 additions & 3 deletions trunk/net/ipv4/esp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)

/* skb is pure payload to encrypt */

err = -ENOMEM;

esp = x->data;
aead = esp->aead;
alen = crypto_aead_authsize(aead);
Expand Down Expand Up @@ -176,8 +174,10 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)
}

tmp = esp_alloc_tmp(aead, nfrags + sglists, seqhilen);
if (!tmp)
if (!tmp) {
err = -ENOMEM;
goto error;
}

seqhi = esp_tmp_seqhi(tmp);
iv = esp_tmp_iv(aead, tmp, seqhilen);
Expand Down

0 comments on commit 5c30052

Please sign in to comment.