From fa8766d220e37d5c11fc6ac72e3de40f5054cfff Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sun, 4 Oct 2009 13:40:10 -0400 Subject: [PATCH] rxfs_storePadd: return 0 on success On success, storePadd should return 0, not the number of bytes written by the last rx_Write call. In some cases this return value would leak all the way out to the close() system call, causing it to fail. Reviewed-on: http://gerrit.openafs.org/573 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- src/afs/afs_fetchstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index a635706..f94ad9e 100644 --- a/src/afs/afs_fetchstore.c +++ b/src/afs/afs_fetchstore.c @@ -213,7 +213,7 @@ rxfs_storePadd(void *rock, afs_uint32 size) return -33; /* XXX */ size -= tlen; } - return code; + return 0; } afs_int32 -- 1.9.4