diff options
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/extra/net-snmp/sessionTable_data_access.c | 9 | ||||
-rw-r--r-- | accel-pppd/extra/net-snmp/sessionTable_data_get.c | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/accel-pppd/extra/net-snmp/sessionTable_data_access.c b/accel-pppd/extra/net-snmp/sessionTable_data_access.c index 0d38e5df..0e804e22 100644 --- a/accel-pppd/extra/net-snmp/sessionTable_data_access.c +++ b/accel-pppd/extra/net-snmp/sessionTable_data_access.c @@ -17,6 +17,7 @@ #include "ppp.h" #include "ipdb.h" +#include "memdebug.h" /** @ingroup interface * @addtogroup data_access data_access: Routines to access data @@ -224,16 +225,16 @@ sessionTable_container_load(netsnmp_container *container) strcpy(rowreq_ctx->data->ifname, ppp->ifname); if (ppp->username) - rowreq_ctx->data->username = strdup(ppp->username); + rowreq_ctx->data->username = _strdup(ppp->username); else - ppp->username = strdup(""); + rowreq_ctx->data->username = _strdup(""); rowreq_ctx->data->peer_addr = ppp->ipv4 ? ppp->ipv4->peer_addr : 0; rowreq_ctx->data->type = ppp->ctrl->type; rowreq_ctx->data->state = ppp->state; rowreq_ctx->data->uptime = (ppp->stop_time ? ppp->stop_time : t) - ppp->start_time; - rowreq_ctx->data->calling_sid = strdup(ppp->ctrl->calling_station_id); - rowreq_ctx->data->called_sid = strdup(ppp->ctrl->called_station_id); + rowreq_ctx->data->calling_sid = _strdup(ppp->ctrl->calling_station_id); + rowreq_ctx->data->called_sid = _strdup(ppp->ctrl->called_station_id); CONTAINER_INSERT(container, rowreq_ctx); ++count; diff --git a/accel-pppd/extra/net-snmp/sessionTable_data_get.c b/accel-pppd/extra/net-snmp/sessionTable_data_get.c index 1dcea1e8..d467ad05 100644 --- a/accel-pppd/extra/net-snmp/sessionTable_data_get.c +++ b/accel-pppd/extra/net-snmp/sessionTable_data_get.c @@ -12,6 +12,7 @@ /* include our parent header */ #include "sessionTable.h" +#include "memdebug.h" /** @defgroup data_get data_get: Routines to get data * @@ -73,13 +74,13 @@ sessionTable_release_data(sessionTable_data *data) DEBUGMSGTL(("verbose:sessionTable:sessionTable_release_data","called\n")); if (data->username) - free(data->username); + _free(data->username); if (data->calling_sid) - free(data->calling_sid); + _free(data->calling_sid); if (data->called_sid) - free(data->called_sid); + _free(data->called_sid); free(data); } /* sessionTable_release_data */ |