libmsc/vty: don't access old bsc rate counters

The BSC rate counters are a leftover from the nitb split.
Accessing them would result into a null-pointer exception,
because the struct isn't initialized.

Change-Id: I8c72ab8bf781d3f9a436eb1a27ac4d13df5e656b
This commit is contained in:
Alexander Couzens 2017-11-21 17:33:49 +01:00
parent 2c46e04ccc
commit 5900c84bd3
1 changed files with 0 additions and 8 deletions

View File

@ -659,14 +659,6 @@ DEFUN(show_stats,
net->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_COMPLETED].current,
net->msc_ctrs->ctr[MSC_CTR_LOC_UPDATE_FAILED].current,
VTY_NEWLINE);
vty_out(vty, "Handover : %lu attempted, %lu no_channel, %lu timeout, "
"%lu completed, %lu failed%s",
net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_ATTEMPTED].current,
net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_NO_CHANNEL].current,
net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_TIMEOUT].current,
net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_COMPLETED].current,
net->bsc_ctrs->ctr[BSC_CTR_HANDOVER_FAILED].current,
VTY_NEWLINE);
vty_out(vty, "SMS MO : %lu submitted, %lu no receiver%s",
net->msc_ctrs->ctr[MSC_CTR_SMS_SUBMITTED].current,
net->msc_ctrs->ctr[MSC_CTR_SMS_NO_RECEIVER].current,