]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't need to dereference name
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 04:58:34 +0000 (10:58 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 04:58:46 +0000 (10:58 +0600)
src/lib/util/dict.c

index 945f748443e388ecc81d90e16f86e39e24edd322..bfcd30f616b7cba0771fafbf3b46b871cf7f54d2 100644 (file)
@@ -2911,7 +2911,7 @@ ssize_t fr_dict_by_protocol_substr(fr_dict_t **out, char const *name)
                return -(FR_DICT_ATTR_MAX_NAME_LEN);
        }
 
-       root.name = talloc_bstrndup(NULL, *name, len);
+       root.name = talloc_bstrndup(NULL, name, len);
        if (!root.name) {
                fr_strerror_printf("Out of memory");
                return 0;