[XS] Change in osmo-e1d[master]: Avoid segfault during 'show octoi-clients' VTY command
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/39226?usp=email ) Change subject: Avoid segfault during 'show octoi-clients' VTY command ...................................................................... Avoid segfault during 'show octoi-clients' VTY command There might be a client without an octoi_sock, so we cannot unconditionally try to use it for printing information. Closes: #6662 Change-Id: I4a35087db6dc970f9ce9605853daab653279c5b0 --- M src/octoi/octoi_clnt_vty.c 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/26/39226/1 diff --git a/src/octoi/octoi_clnt_vty.c b/src/octoi/octoi_clnt_vty.c index afca60c..3ea3a9a 100644 --- a/src/octoi/octoi_clnt_vty.c +++ b/src/octoi/octoi_clnt_vty.c @@ -243,7 +243,8 @@ struct octoi_sock *sock = clnt->sock; octoi_vty_show_one_account(vty, "", clnt->cfg.account); - vty_show_octoi_sock(vty, sock); + if (sock) + vty_show_octoi_sock(vty, sock); } return CMD_SUCCESS; -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/39226?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I4a35087db6dc970f9ce9605853daab653279c5b0 Gerrit-Change-Number: 39226 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge@osmocom.org>
participants (1)
-
laforge