From: Arran Cudbard-Bell Date: Wed, 26 Jan 2022 18:50:16 +0000 (-0600) Subject: String input for fr_value_box_bstrndup maye be NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c8afe4f5fe83d4d4247f55e63e361066ce418f;p=thirdparty%2Ffreeradius-server.git String input for fr_value_box_bstrndup maye be NULL --- diff --git a/src/lib/util/value.h b/src/lib/util/value.h index ab219ec5e0..2623a93eaa 100644 --- a/src/lib/util/value.h +++ b/src/lib/util/value.h @@ -800,7 +800,7 @@ int fr_value_box_bstr_realloc(TALLOC_CTX *ctx, char **out, fr_value_box_t *dst, int fr_value_box_bstrndup(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_dict_attr_t const *enumv, char const *src, size_t len, bool tainted) - CC_HINT(nonnull(2,4)); + CC_HINT(nonnull(2)); /* src may be NULL if len == 0 */ int fr_value_box_bstrndup_dbuff(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_dict_attr_t const *enumv, fr_dbuff_t *dbuff, size_t len, bool tainted)