commit - 5cade90168b43ba473102fcb27dd1fd4d85fcdc9
commit + aa6c0b5105c8829f3ab30f081fa2d3d68ac674d1
blob - f9961bfb6a787156474e30da32622cdb054366e6
blob + 62a79cfc9798d9720d38528272f0681cb10d18d6
--- lib/privsep.c
+++ lib/privsep.c
{
const struct got_error *err = NULL;
struct imsg imsg;
- size_t datalen;
const size_t min_datalen =
MIN(sizeof(struct got_imsg_error), sizeof(struct got_imsg_object));
if (err)
return err;
- datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
-
switch (imsg.hdr.type) {
case GOT_IMSG_OBJECT:
err = got_privsep_get_imsg_obj(obj, &imsg, ibuf);