commit - 8c580685acce28b315d626e327e68287473b27b0
commit + 94fbf93add446439fb6f28d231d9b95d96b5d5f2
blob - a5baf8992edfe2ecb99afd5b264e96c34a1bff05
blob + a5c748f7f02eb28b36259ccf24769609c6b5986c
--- lib/got_lib_privsep.h
+++ lib/got_lib_privsep.h
int flags;
size_t hdrlen;
size_t size;
- struct got_object_id id;
int ndeltas; /* this many GOT_IMSG_DELTA messages follow */
-} __attribute__((__packed__));
+};
/* Structure for GOT_IMSG_LOOSE_OBJECT_HEADER_REPLY data. */
struct got_imsg_loose_object_header_reply {
blob - 36381556ce756969c55865370377ca56bb49582c
blob + ffd6c618469a5401c783a73f57a2efa741ec7691
--- lib/privsep.c
+++ lib/privsep.c
iobj.flags = obj->flags;
iobj.hdrlen = obj->hdrlen;
iobj.size = obj->size;
- memcpy(iobj.id.sha1, obj->id.sha1, SHA1_DIGEST_LENGTH);
iobj.ndeltas = ndeltas;
if (ndeltas > 0) {
(*obj)->type = iobj.type;
(*obj)->hdrlen = iobj.hdrlen;
(*obj)->size = iobj.size;
- memcpy((*obj)->id.sha1, iobj.id.sha1, SHA1_DIGEST_LENGTH);
for (i = 0; i < iobj.ndeltas; i++) {
/* TODO: Handle deltas */
}