]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't cast to int‽
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 18:34:16 +0000 (00:34 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 18:34:16 +0000 (00:34 +0600)
No idea what this was there

src/lib/util/dict.c

index cfdc474bfeba7c35de0a4efc9ebb9ba4e9828dbe..c8b70b0e0236b3755f2a40057e5e635d175fd81f 100644 (file)
@@ -5464,7 +5464,7 @@ ssize_t fr_dict_valid_name(char const *name, ssize_t len)
        end = p + len;
 
        do {
-               if (!fr_dict_attr_allowed_chars[(int)*p]) {
+               if (!fr_dict_attr_allowed_chars[(uint8_t)*p]) {
                        fr_strerror_printf("Invalid character '%pV' in attribute name \"%pV\"",
                                           fr_box_strvalue_len(p, 1), fr_box_strvalue_len(name, len));