]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
talloc_ctx can be NULL
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 14 Dec 2017 21:00:54 +0000 (21:00 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 14 Dec 2017 21:00:54 +0000 (21:00 +0000)
src/main/cf_parse.c

index e78331c4fdd2bdf986ce4a1d79f3de90ed3f7a09..6551a53a625929a4f431e2d350a65df8b7fca7f9 100644 (file)
@@ -99,15 +99,16 @@ static inline int CC_HINT(nonnull) fr_item_validate_ipaddr(CONF_SECTION *cs, cha
  * @copybrief cf_pair_value
  * @see cf_pair_value
  *
- * @param[out] out     Where to write the parsed value.
  * @param[in] ctx      to allocate any dynamic buffers in.
+ * @param[out] out     Where to write the parsed value.
  * @param[in] ci       to parse.
  * @param[in] rule     to parse to.  May contain flags.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
  */
-static int CC_HINT(nonnull) cf_pair_parse_value(TALLOC_CTX *ctx, void *out, CONF_ITEM *ci, CONF_PARSER const *rule)
+static int CC_HINT(nonnull(2, 3, 4)) cf_pair_parse_value(TALLOC_CTX *ctx, void *out,
+                                                        CONF_ITEM *ci, CONF_PARSER const *rule)
 {
        int             rcode = 0;
        bool            attribute, required, secret, file_input, cant_be_empty, tmpl, file_exists;