Index: cackey.c ================================================================== --- cackey.c +++ cackey.c @@ -2607,10 +2607,12 @@ uncompress_ret = inflateEnd(&gzip_stream); } else { uncompress_ret = Z_DATA_ERROR; } if (uncompress_ret == Z_OK) { + tmpbuflen = gzip_stream.total_out; + CACKEY_DEBUG_PRINTBUF("Decompressed to:", tmpbuf, tmpbuflen); free(curr_id->certificate); curr_id->certificate = tmpbuf;