Author: np
Date: Fri Aug 26 08:25:28 2016
New Revision: 304838
URL: https://svnweb.freebsd.org/changeset/base/304838

Log:
  Do not free an uninitialized pointer on soaccept failure in the iWARP
  connection manager.
  
  Sponsored by: Chelsio Communications

Modified:
  head/sys/ofed/drivers/infiniband/core/iwcm.c

Modified: head/sys/ofed/drivers/infiniband/core/iwcm.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/core/iwcm.c        Fri Aug 26 07:49:23 
2016        (r304837)
+++ head/sys/ofed/drivers/infiniband/core/iwcm.c        Fri Aug 26 08:25:28 
2016        (r304838)
@@ -438,6 +438,7 @@ dequeue_socket(struct socket *head)
        so->so_state |= SS_NBIO;
        SOCK_UNLOCK(so);
        ACCEPT_UNLOCK();
+       remote = NULL;
        soaccept(so, (struct sockaddr **)&remote);
 
        free(remote, M_SONAME);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to