aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/cxgbe/iw_cxgbe/cm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c
index 4702e19a5866..dc6aef77e805 100644
--- a/sys/dev/cxgbe/iw_cxgbe/cm.c
+++ b/sys/dev/cxgbe/iw_cxgbe/cm.c
@@ -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: