Commit Diff


commit - 89425ac3087993a34063c921014369e3320d36a6
commit + d94c35b08cef6492ef7d1ea2f34c2b3ca94d5975
blob - 263a705b78418b19bb27015994b68ae432d26121
blob + e06000919c0eb2435e2df718350bdbabf0eae9e4
--- lib/inflate.c
+++ lib/inflate.c
@@ -423,6 +423,8 @@ got_inflate_to_mem_mmap(uint8_t **outbuf, size_t *outl
 		}
 	} else {
 		err = got_inflate_init(&zb, NULL, GOT_INFLATE_BUFSIZE, csum);
+		if (err)
+			return err;
 	}
 
 	*outlen = 0;