File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ void dccp_req_err(struct sock *sk, u64 seq)
208
208
209
209
if (!between48 (seq , dccp_rsk (req )-> dreq_iss , dccp_rsk (req )-> dreq_gss )) {
210
210
NET_INC_STATS_BH (net , LINUX_MIB_OUTOFWINDOWICMPS );
211
+ reqsk_put (req );
211
212
} else {
212
213
/*
213
214
* Still in RESPOND, just remove it silently.
@@ -217,7 +218,6 @@ void dccp_req_err(struct sock *sk, u64 seq)
217
218
*/
218
219
inet_csk_reqsk_queue_drop (req -> rsk_listener , req );
219
220
}
220
- reqsk_put (req );
221
221
}
222
222
EXPORT_SYMBOL (dccp_req_err );
223
223
Original file line number Diff line number Diff line change @@ -324,17 +324,17 @@ void tcp_req_err(struct sock *sk, u32 seq)
324
324
325
325
if (seq != tcp_rsk (req )-> snt_isn ) {
326
326
NET_INC_STATS_BH (net , LINUX_MIB_OUTOFWINDOWICMPS );
327
+ reqsk_put (req );
327
328
} else {
328
329
/*
329
330
* Still in SYN_RECV, just remove it silently.
330
331
* There is no good way to pass the error to the newly
331
332
* created socket, and POSIX does not want network
332
333
* errors returned from accept().
333
334
*/
334
- inet_csk_reqsk_queue_drop (req -> rsk_listener , req );
335
335
NET_INC_STATS_BH (net , LINUX_MIB_LISTENDROPS );
336
+ inet_csk_reqsk_queue_drop (req -> rsk_listener , req );
336
337
}
337
- reqsk_put (req );
338
338
}
339
339
EXPORT_SYMBOL (tcp_req_err );
340
340
You can’t perform that action at this time.
0 commit comments