Commit Diff


commit - 0bd18d379f824371c6439f6c6d72b23c4169d99c
commit + 0ae4af15cdf5c0a021b94067e49b4a98fb035a51
blob - 77aecd74355d66b1be89bd68885ab9690f33f3ff
blob + 11bf13fb72e1aed324609da86c813f934627206f
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
@@ -308,6 +308,8 @@ tag_request(struct imsg *imsg, struct imsgbuf *ibuf, s
 	obj->size = len;
 	err = got_object_parse_tag(&tag, buf, len);
 	free(buf);
+	if (err)
+		return err;
 
 	err = got_privsep_send_tag(ibuf, tag);
 	if (obj)