[Patch 1/1] Chunk: fix stored checksums

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

 



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

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux