|
@@ -219,9 +219,9 @@ int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(__cookie_v4_check);
|
|
|
|
|
|
-static inline struct sock *get_cookie_sock(struct sock *sk, struct sk_buff *skb,
|
|
|
- struct request_sock *req,
|
|
|
- struct dst_entry *dst)
|
|
|
+static struct sock *get_cookie_sock(struct sock *sk, struct sk_buff *skb,
|
|
|
+ struct request_sock *req,
|
|
|
+ struct dst_entry *dst)
|
|
|
{
|
|
|
struct inet_connection_sock *icsk = inet_csk(sk);
|
|
|
struct sock *child;
|
|
@@ -357,7 +357,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb)
|
|
|
ireq->opt = tcp_v4_save_options(skb);
|
|
|
|
|
|
if (security_inet_conn_request(sk, skb, req)) {
|
|
|
- reqsk_free(req);
|
|
|
+ reqsk_put(req);
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
@@ -378,7 +378,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb)
|
|
|
security_req_classify_flow(req, flowi4_to_flowi(&fl4));
|
|
|
rt = ip_route_output_key(sock_net(sk), &fl4);
|
|
|
if (IS_ERR(rt)) {
|
|
|
- reqsk_free(req);
|
|
|
+ reqsk_put(req);
|
|
|
goto out;
|
|
|
}
|
|
|
|