diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-12-05 18:05:57 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-12-05 18:05:57 +0300 |
commit | e959ea1bd262441a952ea0c807d553b4a9c38113 (patch) | |
tree | 096330fed2dc5a84f0757d6c725c64a8e88cd97e /accel-pppd/extra/net-snmp | |
parent | 43bd92e615d94342b689a20eff2df51b5b517c5f (diff) | |
download | accel-ppp-e959ea1bd262441a952ea0c807d553b4a9c38113.tar.gz accel-ppp-e959ea1bd262441a952ea0c807d553b4a9c38113.zip |
net-snmp: fixed crash on table request
Diffstat (limited to 'accel-pppd/extra/net-snmp')
-rw-r--r-- | accel-pppd/extra/net-snmp/sessionTable_data_access.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/extra/net-snmp/sessionTable_data_access.c b/accel-pppd/extra/net-snmp/sessionTable_data_access.c index 13ddfc5d..41c72686 100644 --- a/accel-pppd/extra/net-snmp/sessionTable_data_access.c +++ b/accel-pppd/extra/net-snmp/sessionTable_data_access.c @@ -236,6 +236,7 @@ sessionTable_container_load(netsnmp_container *container) rowreq_ctx->data->calling_sid = _strdup(ses->ctrl->calling_station_id); rowreq_ctx->data->called_sid = _strdup(ses->ctrl->called_station_id); + net = ses->net; ap_session_read_stats(ses, &stats); rowreq_ctx->data->rx_pkts = stats.rx_packets; rowreq_ctx->data->rx_bytes = stats.rx_bytes; |