Clear the so_pcb pointer in case of ipsec_init_policy() fails.
MFC after: 1 week
This commit is contained in:
@@ -537,9 +537,10 @@ sctp_attach(struct socket *so, int proto SCTP_UNUSED, struct thread *p SCTP_UNUS
|
|||||||
SCTP_INP_WUNLOCK(inp);
|
SCTP_INP_WUNLOCK(inp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
so->so_pcb = NULL;
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
#endif /* IPSEC */
|
#endif
|
||||||
SCTP_INP_WUNLOCK(inp);
|
SCTP_INP_WUNLOCK(inp);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user