summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/radius.c')
-rw-r--r--usr.sbin/ppp/radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c
index df57b3d..1bd92ae 100644
--- a/usr.sbin/ppp/radius.c
+++ b/usr.sbin/ppp/radius.c
@@ -530,7 +530,7 @@ radius_Process(struct radius *r, int got)
* Only point at the String field if we don't think the
* peer has misformatted the response.
*/
- ((const char *)data)++;
+ data = (const char *)data + 1;
len--;
} else
log_Printf(LogWARN, "Warning: The MS-CHAP-Error "
@@ -558,7 +558,7 @@ radius_Process(struct radius *r, int got)
* Only point at the String field if we don't think the
* peer has misformatted the response.
*/
- ((const char *)data)++;
+ data = (const char *)data + 1;
len--;
} else
log_Printf(LogWARN, "Warning: The MS-CHAP2-Success "
OpenPOWER on IntegriCloud