sctp_pcb.c (32f9753cfbfe844fa6c02c88c7ca96617e903d8e) sctp_pcb.c (71498f308b2324dbd94e94fd8c4ae41bf4bd663b)
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 2777 unchanged lines hidden (view full) ---

2786
2787 /* Unlocks not needed since the socket is gone now */
2788 }
2789 if (ip_pcb->inp_options) {
2790 (void)sctp_m_free(ip_pcb->inp_options);
2791 ip_pcb->inp_options = 0;
2792 }
2793 if (ip_pcb->inp_moptions) {
1/*-
2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

--- 2777 unchanged lines hidden (view full) ---

2786
2787 /* Unlocks not needed since the socket is gone now */
2788 }
2789 if (ip_pcb->inp_options) {
2790 (void)sctp_m_free(ip_pcb->inp_options);
2791 ip_pcb->inp_options = 0;
2792 }
2793 if (ip_pcb->inp_moptions) {
2794 ip_freemoptions(ip_pcb->inp_moptions);
2794 inp_freemoptions(ip_pcb->inp_moptions);
2795 ip_pcb->inp_moptions = 0;
2796 }
2797#ifdef INET6
2798 if (ip_pcb->inp_vflag & INP_IPV6) {
2799 struct in6pcb *in6p;
2800
2801 in6p = (struct in6pcb *)inp;
2802 ip6_freepcbopts(in6p->in6p_outputopts);

--- 2840 unchanged lines hidden ---
2795 ip_pcb->inp_moptions = 0;
2796 }
2797#ifdef INET6
2798 if (ip_pcb->inp_vflag & INP_IPV6) {
2799 struct in6pcb *in6p;
2800
2801 in6p = (struct in6pcb *)inp;
2802 ip6_freepcbopts(in6p->in6p_outputopts);

--- 2840 unchanged lines hidden ---