summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2010-04-03 20:03:38 +0000
committerkrw <krw@openbsd.org>2010-04-03 20:03:38 +0000
commit838ec05ff4a21c74067ecdf770fdc8d253f37ad8 (patch)
tree174428c0c596c169a653801b0c19d8a1c4c90549
parentBuild all manual pages in base with mandoc(1) instead of groff, (diff)
downloadwireguard-openbsd-838ec05ff4a21c74067ecdf770fdc8d253f37ad8.tar.xz
wireguard-openbsd-838ec05ff4a21c74067ecdf770fdc8d253f37ad8.zip
Don't return 0 if error is set to EBADRPC. Found by jsg@ and clang.
ok deraadt@
-rw-r--r--sys/nfs/nfs_boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_boot.c b/sys/nfs/nfs_boot.c
index 0ce38f5e9fb..12fccd0d950 100644
--- a/sys/nfs/nfs_boot.c
+++ b/sys/nfs/nfs_boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_boot.c,v 1.25 2009/10/19 22:24:18 jsg Exp $ */
+/* $OpenBSD: nfs_boot.c,v 1.26 2010/04/03 20:03:38 krw Exp $ */
/* $NetBSD: nfs_boot.c,v 1.26 1996/05/07 02:51:25 thorpej Exp $ */
/*
@@ -500,7 +500,7 @@ bad:
out:
m_freem(m);
- return(0);
+ return(error);
}