Author: tuexen
Date: Sat Jan 16 18:15:41 2016
New Revision: 294185
URL: https://svnweb.freebsd.org/changeset/base/294185

Log:
  MFC r291138:
  Clear the so_pcb pointer in case of ipsec_init_policy() fails.

Modified:
  stable/10/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/10/sys/netinet/sctp_usrreq.c Sat Jan 16 18:13:33 2016        
(r294184)
+++ stable/10/sys/netinet/sctp_usrreq.c Sat Jan 16 18:15:41 2016        
(r294185)
@@ -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);
 }
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to