]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix null dereference in ldisc_configure.
authorSimon Tatham <anakin@pobox.com>
Wed, 27 Aug 2014 22:25:37 +0000 (22:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 27 Aug 2014 22:25:37 +0000 (22:25 +0000)
commit92fba02d577557b7fc2bb15423906e570675b64e
tree674e5a47c3d0617dae0eda22ab3130edc677740d
parent4b2a2060bb829017b8098c0f3a2064d07145190e
Fix null dereference in ldisc_configure.

The IDM_RECONF handler unconditionally calls ldisc_configure to
reconfigure the line discipline for the new echo/edit settings, but in
fact ldisc can be NULL if no session is currently active. (Indeed, the
very next line acknowledges this, by testing it for NULL before
calling ldisc_send!) Thanks to Alexander Wong for the report.

[originally from svn r10214]
windows/window.c