mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 20:01:08 +01:00
Plug file reference leak in capability failure case.
Sponsored by: FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
62b1b42507
commit
f6ed2ff79d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236727
@ -1841,7 +1841,7 @@ ttyhook_register(struct tty **rtp, struct proc *p, int fd,
|
||||
fp_cap = fp;
|
||||
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
|
||||
if (error)
|
||||
return (error);
|
||||
goto done1;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user