/* At the end of a Deflate-compressed PPP packet, we expect to have seen a  */
static int zlib_inflateSyncPacket(z_streamp strm)
/* At the end of a Deflate-compressed PPP packet, we expect to have seen a  */
static int zlib_inflateSyncPacket(z_streamp strm)
{
    struct inflate_state *state;
    if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR;
    state = (struct inflate_state *)strm->state;
    if (state->mode == STORED && state->bits == 0) {
	state->mode = TYPE;
        return Z_OK;
    }
    return Z_DATA_ERROR;
}