mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
iw_cxgbe: don't forget to close the socket in c4iw_connect if soconnect
fails. Submitted by: hariprasad at chelsio dot com
This commit is contained in:
parent
468bac7080
commit
aa8d1792d1
1 changed files with 3 additions and 1 deletions
|
|
@ -2114,9 +2114,11 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|||
ep->com.thread);
|
||||
|
||||
if (!err) {
|
||||
|
||||
CTR2(KTR_IW_CXGBE, "%s:cca %p", __func__, ep);
|
||||
goto out;
|
||||
} else {
|
||||
close_socket(&ep->com, 0);
|
||||
goto fail2;
|
||||
}
|
||||
|
||||
fail3:
|
||||
|
|
|
|||
Loading…
Reference in a new issue