Fix possible SLIOCSUNIT panic

PR:		16564
Submitted by:	ru
Approved by:	jkh
This commit is contained in:
Andrey A. Chernov 2000-02-20 21:03:53 +00:00
parent de8050f9b8
commit df2ef4c180

View file

@ -402,6 +402,7 @@ sltioctl(tp, cmd, data, flag, p)
clist_alloc_cblocks(&tp->t_outq,
SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1,
SLIP_HIWAT + 2 * sc->sc_if.if_mtu + 1);
sl_compress_init(&sc->sc_comp, -1);
goto slfound;
}
}