We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d942fe1 commit ae63338Copy full SHA for ae63338
drivers/net/ppp/pptp.c
@@ -159,17 +159,17 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
159
int len;
160
unsigned char *data;
161
__u32 seq_recv;
162
- struct rtable *rt = NULL;
+ struct rtable *rt;
163
struct net_device *tdev;
164
struct iphdr *iph;
165
int max_headroom;
166
167
if (sk_pppox(po)->sk_state & PPPOX_DEAD)
168
- goto tx_error;
+ goto tx_drop;
169
170
rt = pptp_route_output(po, &fl4);
171
if (IS_ERR(rt))
172
173
174
tdev = rt->dst.dev;
175
@@ -265,6 +265,7 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
265
266
tx_error:
267
ip_rt_put(rt);
268
+tx_drop:
269
kfree_skb(skb);
270
return 1;
271
}
0 commit comments