Plug a credential leak in case the inpcb is freed by

in6_pcbfree() instead of in_pcbfree(); missed in r183606.

Reviewed by:	rwatson
MFC after:	3 days (instantly for 7.1-RC?)
This commit is contained in:
Bjoern A. Zeeb 2008-11-26 12:24:18 +00:00
parent 7a1940c4ad
commit b0fab0344f

View File

@ -442,6 +442,7 @@ in6_pcbfree(struct inpcb *inp)
if (inp->inp_moptions != NULL)
inp_freemoptions(inp->inp_moptions);
inp->inp_vflag = 0;
crfree(inp->inp_cred);
#ifdef MAC
mac_inpcb_destroy(inp);
#endif