bug-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-radius] radius-1.1: nextkn() in radiusd/files.c bug in string p


From: jmt
Subject: [Bug-gnu-radius] radius-1.1: nextkn() in radiusd/files.c bug in string processing
Date: Fri, 1 Aug 2003 13:23:20 -0400 (EDT)

In the case for string tokens between '"' characters, it ends leaving
*sptr pointing to the end '"'. Consequently, the next time it runs through
nexttkn(), it will start reading a string token from the last '"'.

My simple fix was to put the while loop.

if (**sptr == '"')
  (*sptr)++;

This should *sptr pointing to the correct place for the next time nextkn()
is called.

----------------
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]