]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't go too far ahead
authorAlan T. DeKok <aland@freeradius.org>
Mon, 20 Jun 2011 14:57:14 +0000 (16:57 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 20 Jun 2011 14:58:43 +0000 (16:58 +0200)
if (..){

is OK.  The previous code skipped over the curly brace, assuming
that it was there... the code to check for syntax errors assumed
that the curly brace was not skipped over.  This change fixes
that conflict

src/main/conffile.c

index 631b104eef509fbde7952d84c3e05ccc279e89fc..20b0467d41b40fd51d47b0d23a5421c5c8859368 100644 (file)
@@ -1665,7 +1665,7 @@ static int cf_section_read(const char *filename, int *lineno, FILE *fp,
                                buf2[0] = '(';
                                memcpy(buf2 + 1, ptr, end - ptr);
                                buf2[end - ptr + 1] = '\0';
-                               ptr = end + 1;
+                               ptr = end;
                                t2 = T_BARE_WORD;
 
                                if (gettoken(&ptr, buf3, sizeof(buf3)) != T_LCBRACE) {