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 <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Marc Dionne 2009-10-04 13:40:10 -04:00 committed by Derrick Brashear
parent 6d9ad2e4d0
commit fa8766d220

View File

@ -213,7 +213,7 @@ rxfs_storePadd(void *rock, afs_uint32 size)
return -33; /* XXX */ return -33; /* XXX */
size -= tlen; size -= tlen;
} }
return code; return 0;
} }
afs_int32 afs_int32