diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-04-05 14:06:53 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-04-05 14:06:53 +0000 |
commit | 9705c4e09e3eb5cd8a788239d1e9d247e326a80e (patch) | |
tree | d40f50a3f10adc87ce08730ba3096844b17763e3 /sys | |
parent | b39b70559e9db5325af7defefc45089e11e87e9b (diff) |
make sure *vpp == NULL if udf_lookup() returns an error
Diffstat (limited to 'sys')
-rw-r--r-- | sys/isofs/udf/udf_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c index bcd25c1d6f0..e20e8755503 100644 --- a/sys/isofs/udf/udf_vnops.c +++ b/sys/isofs/udf/udf_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vnops.c,v 1.4 2005/03/30 01:10:00 pedro Exp $ */ +/* $OpenBSD: udf_vnops.c,v 1.5 2005/04/05 14:06:52 pedro Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -1039,6 +1039,7 @@ udf_lookup(void *v) namelen = ap->a_cnp->cn_namelen; fsize = letoh64(node->fentry->inf_len); p = ap->a_cnp->cn_proc; + *vpp = NULL; /* * Make sure the process can scan the requested directory. |