Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2014 03:59:37 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274461 - head/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201411130359.sAD3xb4K091273@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Thu Nov 13 03:59:36 2014
New Revision: 274461
URL: https://svnweb.freebsd.org/changeset/base/274461

Log:
  iw_cxgbe: don't forget to close the socket in c4iw_connect if soconnect
  fails.
  
  Submitted by:	hariprasad at chelsio dot com

Modified:
  head/sys/dev/cxgbe/iw_cxgbe/cm.c

Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/cm.c	Thu Nov 13 00:46:53 2014	(r274460)
+++ head/sys/dev/cxgbe/iw_cxgbe/cm.c	Thu Nov 13 03:59:36 2014	(r274461)
@@ -2114,9 +2114,11 @@ int c4iw_connect(struct iw_cm_id *cm_id,
 		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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411130359.sAD3xb4K091273>