summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-13 13:25:17 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-13 13:25:17 +0300
commit7de0d2d00be552dede15dfd02c9e423dda7eb6f5 (patch)
tree89b92d73e7fc671615a1ac3ccef81743027c0f15 /accel-pppd/extra
parent89b014431eb1bebcad41462844e088e9773509fc (diff)
downloadaccel-ppp-7de0d2d00be552dede15dfd02c9e423dda7eb6f5.tar.gz
accel-ppp-7de0d2d00be552dede15dfd02c9e423dda7eb6f5.zip
logwtmp: check for username presence
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/logwtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/extra/logwtmp.c b/accel-pppd/extra/logwtmp.c
index 9f31d69..f95b62c 100644
--- a/accel-pppd/extra/logwtmp.c
+++ b/accel-pppd/extra/logwtmp.c
@@ -16,7 +16,7 @@
static void ev_ses_started(struct ap_session *ses)
{
- logwtmp(ses->ifname, ses->username, ses->ctrl->calling_station_id);
+ logwtmp(ses->ifname, ses->username ?: "", ses->ctrl->calling_station_id);
}
static void ev_ses_finished(struct ap_session *ses)