]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove dead code path
authorPhil Mayers <p.mayers@imperial.ac.uk>
Fri, 21 Sep 2012 16:49:34 +0000 (17:49 +0100)
committerPhil Mayers <p.mayers@imperial.ac.uk>
Fri, 5 Oct 2012 11:52:26 +0000 (12:52 +0100)
src/main/xlat.c

index 702ceb10957ffb287766bedbc1e8b3ab8b95fbba..c9512fbefdd3d79858c77162067d7e2977eb9dda 100644 (file)
@@ -1190,7 +1190,6 @@ int radius_xlat(char *out, int outlen, const char *fmt,
        VALUE_PAIR *tmp;
        struct tm *TM, s_TM;
        char tmpdt[40]; /* For temporary storing of dates */
-       int openbraces=0;
 
        /*
         *      Catch bad modules.
@@ -1219,11 +1218,6 @@ int radius_xlat(char *out, int outlen, const char *fmt,
                         * then we assume this brace is NOT literal, but is
                         * a closing brace and apply it
                         */
-                       if ((c == '}') && openbraces) {
-                               openbraces--;
-                               p++; /* skip it */
-                               continue;
-                       }
                        *q++ = *p++;
                        continue;
                }