summaryrefslogtreecommitdiff
path: root/lib/compiler.h
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2020-03-26 17:36:37 -0700
committersaravanank <saravanank@vmware.com>2020-03-26 17:36:37 -0700
commit9934e1c9b838994bf0604a988c54d0e7b8d315ae (patch)
tree0a6c2d1bbb29036415a7d3c6118b1dfe15bae9e7 /lib/compiler.h
parent7f2ccbe562cae49fb8bf1770a0ec79b701ee41af (diff)
vtysh: Crash during show running-config
RCA: when client is killed, show running-config command crashes vtysh. vtysh_client_config function temporarily makes vty->of which is standard output file pointer to null inorder to suppress output to user. This call further tries to communicate with each client and when the client is terminated, socket call fails and hits the exception path to print the connection has failed using vty_out. vty_out crashes because vtysh_client_config has temporarily made vty->of pointer to NULL to supress o/p to user. Fix: vty_out function should check for the sanity of vty->of pointer. If it doesn't exist, this must have hit exception path, so use the vty->saved_of if exists. Signed-off-by: Saravanan K <saravanank@vmware.com>
Diffstat (limited to 'lib/compiler.h')
0 files changed, 0 insertions, 0 deletions