summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-04 02:41:36 +0300
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-04 02:41:36 +0300
commit2117fb22a60973e773ccf97c17cd2b48e78f6d76 (patch)
tree0190049a1bbeff34354ea4f7d4b6f4c548dfeacc
parentb061e4b770edc2eee4a6df7831068a53e61d185d (diff)
downloadaccel-ppp-2117fb22a60973e773ccf97c17cd2b48e78f6d76.tar.gz
accel-ppp-2117fb22a60973e773ccf97c17cd2b48e78f6d76.zip
T46: Fix per-user-dir logging
-rw-r--r--accel-pppd/logs/log_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/logs/log_file.c b/accel-pppd/logs/log_file.c
index 42d9f3f4..481afa1e 100644
--- a/accel-pppd/logs/log_file.c
+++ b/accel-pppd/logs/log_file.c
@@ -268,7 +268,7 @@ static struct ap_private *find_pd(struct ap_session *ses, void *pd_key)
struct list_head *pos, *next;
list_for_each_safe(pos, next, &ses->pd_list) {
- pd = list_entry(pos->next, typeof(*pd), entry);
+ pd = list_entry(pos, typeof(*pd), entry);
if (pd->key == pd_key) {
return pd;
}