summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-06-23 18:33:09 +0300
committerGitHub <noreply@github.com>2026-06-23 18:33:09 +0300
commit6a2dfa19254637ac8d844550d9bd36b7467c181f (patch)
tree6f75738e88f61e813c61d17290a71ab44888175d /accel-pppd/radius
parentafa315e928a3eb3d6e4e793303b08907013946fb (diff)
parentf8dfbeca348d9f4eb794cdf3756a94f2d0acc730 (diff)
downloadaccel-ppp-6a2dfa19254637ac8d844550d9bd36b7467c181f.tar.gz
accel-ppp-6a2dfa19254637ac8d844550d9bd36b7467c181f.zip
Merge pull request #315 from nuclearcat/khedor-fixes
Several bugfixes for problems reported by Khodor Tahech
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r--accel-pppd/radius/dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/dict.c b/accel-pppd/radius/dict.c
index 145c5da2..c181c7cd 100644
--- a/accel-pppd/radius/dict.c
+++ b/accel-pppd/radius/dict.c
@@ -92,7 +92,7 @@ static int dict_load(const char *fname)
continue;
r = split(buf, ptr);
- if (*ptr[r - 1] == '#')
+ if (r > 0 && *ptr[r - 1] == '#')
r--;
if (!strcmp(buf, "VENDOR")) {