Author: tuexen
Date: Sat Nov 21 16:32:14 2015
New Revision: 291138
URL: https://svnweb.freebsd.org/changeset/base/291138

Log:
  Clear the so_pcb pointer in case of ipsec_init_policy() fails.
  
  MFC after:    1 week

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c      Sat Nov 21 16:25:09 2015        
(r291137)
+++ head/sys/netinet/sctp_usrreq.c      Sat Nov 21 16:32:14 2015        
(r291138)
@@ -537,9 +537,10 @@ try_again:
                                SCTP_INP_WUNLOCK(inp);
                        }
                }
+               so->so_pcb = NULL;
                return (error);
        }
-#endif                         /* IPSEC */
+#endif
        SCTP_INP_WUNLOCK(inp);
        return (0);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to