Commit Diff
--- lib/inflate.c +++ lib/inflate.c @@ -425,6 +425,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;
--- lib/inflate.c +++ lib/inflate.c @@ -425,6 +425,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;