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:
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to