diff options
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r-- | net/ipv4/ipcomp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index b55a0c3df82f..83ed71500898 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
@@ -127,16 +127,12 @@ static int ipcomp4_init_state(struct xfrm_state *x) | |||
127 | if (x->props.mode == XFRM_MODE_TUNNEL) { | 127 | if (x->props.mode == XFRM_MODE_TUNNEL) { |
128 | err = ipcomp_tunnel_attach(x); | 128 | err = ipcomp_tunnel_attach(x); |
129 | if (err) | 129 | if (err) |
130 | goto error_tunnel; | 130 | goto out; |
131 | } | 131 | } |
132 | 132 | ||
133 | err = 0; | 133 | err = 0; |
134 | out: | 134 | out: |
135 | return err; | 135 | return err; |
136 | |||
137 | error_tunnel: | ||
138 | ipcomp_destroy(x); | ||
139 | goto out; | ||
140 | } | 136 | } |
141 | 137 | ||
142 | static const struct xfrm_type ipcomp_type = { | 138 | static const struct xfrm_type ipcomp_type = { |