]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tell the caller about hashes, too
authorAlan T. DeKok <aland@freeradius.org>
Wed, 15 Jan 2020 23:35:30 +0000 (18:35 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 15 Jan 2020 23:35:30 +0000 (18:35 -0500)
src/lib/util/pair.c

index 8cc60b37c0b367ee2097fa49f6062359b8f6c4b5..0cbac8f5a172040c3cc7c23ed930219547f469cf 100644 (file)
@@ -1614,7 +1614,10 @@ static ssize_t fr_pair_list_afrom_substr(TALLOC_CTX *ctx, fr_dict_t const *dict,
                 *      Stop at the end of the input, returning
                 *      whatever token was last read.
                 */
-               if (!*p || (*p == '#')) {
+               if (!*p) break;
+
+               if (*p == '#') {
+                       last_token = T_EOL;
                        break;
                }