Existing code writes checksums of something other than the object data.
Fix by summing the object data.

Signed-off-by: Pete Zaitcev <[email protected]>

---
 server/object.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This seems too obvious... Where is the trap?

diff -urpN -X dontdiff chunkd-m/server/object.c chunkd-tip/server/object.c
--- chunkd-m/server/object.c    2009-12-20 19:06:24.156353635 -0700
+++ chunkd-tip/server/object.c  2009-12-20 19:05:57.130476765 -0700
@@ -195,7 +195,7 @@ bool cli_evt_data_in(struct client *cli,
                        return cli_err(cli, che_InternalError, false);
                }
 
-               SHA1_Update(&cli->out_hash, cli->req_ptr, bytes);
+               SHA1_Update(&cli->out_hash, p, bytes);
 
                cli->out_len -= bytes;
                p += bytes;
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to