diff options
| -rw-r--r-- | inflate.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -645,6 +645,8 @@ int flush; | |||
| 645 | NEEDBITS(16); | 645 | NEEDBITS(16); |
| 646 | #ifdef GUNZIP | 646 | #ifdef GUNZIP |
| 647 | if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */ | 647 | if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */ |
| 648 | if (state->wbits == 0) | ||
| 649 | state->wbits = 15; | ||
| 648 | state->check = crc32(0L, Z_NULL, 0); | 650 | state->check = crc32(0L, Z_NULL, 0); |
| 649 | CRC2(state->check, hold); | 651 | CRC2(state->check, hold); |
| 650 | INITBITS(); | 652 | INITBITS(); |
