diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-08-21 17:40:51 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-08-21 17:48:55 +0200 |
commit | 0e48cd67e1cdc543f9d6c56142dbb720f901d5eb (patch) | |
tree | e334ab2cf0ea01a1f2b819e54ca2c4522e21b051 /debian | |
parent | 0c2a46d8a62b5af6c5fb7ad80e720607d5b91864 (diff) |
fix: vty crash by logging to killed telnet session
When a telnet session dies (e.g. killall telnet) and also has logging enabled,
the closing of the telnet session logs to the killed telnet session and
segfaults: the vty->obuf is already NULL.
In vty_out(), guard against this situation by not composing an output if
vty->obuf is NULL.
Also guard all buffer_*() functions against a NULL buffer argument, which
should catch all other hypothetical code paths trying to add to a closed
vty->obuf.
Related: OS#4164
Change-Id: Idca3f54dc986abf6784790c12e69e02bdf77cb41
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions