mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer
Reported by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
4456846a1a
commit
d6b900c915
1 changed files with 1 additions and 1 deletions
|
|
@ -3866,7 +3866,7 @@ vn_path_to_global_path_hardlink(struct thread *td, struct vnode *vp,
|
|||
|
||||
if (error != 0) {
|
||||
vrele(vp);
|
||||
goto out;
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (strlen(rpath) >= pathlen) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue