summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 9f31d694..f95b62c4 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)