Handle errno properly when accepting a PPTP connection. Previously,
file descriptor exhaustion could cause the accept loop to spin
indefinitely.
From Acts1631
Reject a PPTP control packet with an invalid length field.
Previously, an invalid packet could cause the input event loop to spin
indefinitely, effectively hanging the process until it was terminated.
From Acts1631
Don't attempt to read firmware in DVAT_RESUME. It most defenitely won't
work! Instead, if we find that the firmware wasn't read sucessfully
at mountroot time, return early and skip further initialization. The
device will be just as non-functional as before the suspend happened.
ok deraadt@
Reject a PADR which has an AC-Cookie of invalid length. Also, fix
the duplicate cookie check, which mistakenly used the pointer instead
of the value as the hash key.
Align TLVs in tlvspace, including the first one, to a 32-bit boundary
so that tlv->value is properly aligned to its consumers. Don't use
ALIGNBYTES, which is for another purpose and not what we need here.
Point out by a colleague in IIJ.
The TX-done interrupt should read from consumer register, not producer. I
made this mistype during conversion bse(4) output to MP-safe.
From Acts1631. OK kettenis.
Instead of overwriting wide characters manually when combining, use the
normal cell write path. Fixes problems with overlapping wide characters
and those close to the last column.
rpki-client: shuffle things in nca.c into a more sensible order
This separates the ca_tree and the nca_hist_tree cleanly and prepares
for upcoming work.
based on a diff by/ok job
tmux: remove redundant event_del()/evtimer_del()
event_add(3) automatically replaces any pending timeout for an existing
event, making explicit event_del() / evtimer_del() calls immediately
before event_add() / evtimer_add() unnecessary.
OK nicm@
npppd: remove redundant evtimer_del() in macro
evtimer_add(3) (libevent) automatically replaces any pending timeout for
an existing event, making the explicit call to evtimer_del() before
evtimer_add() superfluous.
OK yasuoka@