]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
strerror.c: NULL error pointer passed to %s in fr_perror_to_str else-branch
authorAlexander Bainbridge-Sedivy <alex.bainbridge@inkbridge.io>
Wed, 20 May 2026 19:48:22 +0000 (15:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 28 May 2026 19:51:21 +0000 (15:51 -0400)
src/lib/util/strerror.c

index f89a2134ca8d3b2092ca041081969f3cb6fe878b..12a05365bd1afcd47d1b2e6204518a312ac7adae 100644 (file)
@@ -800,7 +800,6 @@ char const *fr_perror_to_str(char const *line_sep, char const *fmt, ...)
        if (error) {
                if (fr_sbuff_in_sprintf(agg, "%s: %s%s", prefix, error, line_sep) < 0) return NULL;
        } else {
-               if (fr_sbuff_in_sprintf(agg, "%s%s", prefix, error, line_sep) < 0) return NULL;
                talloc_free(prefix);
                return NULL;
        }