bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/12] nfsd: fix error handling in op_remove


From: Justus Winter
Subject: [PATCH 08/12] nfsd: fix error handling in op_remove
Date: Wed, 20 Nov 2013 14:38:01 +0100

Found using the Clang Static Analyzer.

* nfsd/ops.c (op_remove): Fix error handling.
---
 nfsd/ops.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfsd/ops.c b/nfsd/ops.c
index d503290..6e2cbb1 100644
--- a/nfsd/ops.c
+++ b/nfsd/ops.c
@@ -398,7 +398,7 @@ op_remove (struct cache_handle *c,
   err = dir_unlink (c->port, name);
   free (name);
 
-  return 0;
+  return err;
 }
 
 static error_t
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]