radius-1.1: nextkn() in radiusd/files.c bug in string processing

jmt <[email protected]> Fri, 1 Aug 2003 13:23:20 -0400 (EDT)
Newsgroups gmane.comp.gnu.radius.bugs
Message-ID <[email protected]>
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.

----------------
[email protected]