summaryrefslogtreecommitdiff
path: root/nfsd
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-20 12:01:43 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-21 10:29:54 +0100
commitd1fd151cdd1faec5fd4966118586c746a89d93c1 (patch)
tree93cf4eb0e36cd0c47392639d0ffd734e0f638da7 /nfsd
parent562e3a8a2652dd960d5d76208c723f717e47330e (diff)
nfsd: fix error handling in op_remove
Found using the Clang Static Analyzer. * nfsd/ops.c (op_remove): Fix error handling.
Diffstat (limited to 'nfsd')
-rw-r--r--nfsd/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfsd/ops.c b/nfsd/ops.c
index d503290e..6e2cbb15 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