summaryrefslogtreecommitdiff
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vfsops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c
index 3fe99184349..4c43fb9489a 100644
--- a/sys/miscfs/portal/portal_vfsops.c
+++ b/sys/miscfs/portal/portal_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal_vfsops.c,v 1.13 2002/03/14 01:27:08 millert Exp $ */
+/* $OpenBSD: portal_vfsops.c,v 1.14 2002/08/23 22:21:44 art Exp $ */
/* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */
/*
@@ -105,10 +105,10 @@ portal_mount(mp, path, data, ndp, p)
if ((error = getsock(p->p_fd, args.pa_socket, &fp)) != 0)
return (error);
so = (struct socket *) fp->f_data;
- if (so->so_proto->pr_domain->dom_family != AF_UNIX)
+ if (so->so_proto->pr_domain->dom_family != AF_UNIX) {
+ FRELE(fp);
return (ESOCKTNOSUPPORT);
-
- FREF(fp);
+ }
error = getnewvnode(VT_PORTAL, mp, portal_vnodeop_p, &rvp); /* XXX */
if (error) {