]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove final instance of tmpl_pair_list_t
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 18:41:40 +0000 (12:41 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 18:41:40 +0000 (12:41 -0600)
src/modules/rlm_couchbase/mod.c

index 1379c6ac9ea05ef0efb41e16a5f90a53844a50be..747d18706b64eb88468ed83fd05b569f55bc3c2a 100644 (file)
@@ -364,16 +364,16 @@ int mod_attribute_to_element(const char *name, json_object *map, void *buf)
  * @param[in] out      Cursor to append maps to.
  * @param[in] request  The request to which the generated pairs should be added.
  * @param[in] json     The JSON object representation of the user document.
- * @param[in] list     The pair list PAIR_LIST_CONTROL or PAIR_LIST_REPLY.
+ * @param[in] list     The pair list fr_request_attr_control or fr_request_attr_reply
  * @return
  *     - 1 if no section found.
  *     - 0 on success.
  *     - <0 on error.
  */
-int mod_json_object_to_map(TALLOC_CTX *ctx, fr_dcursor_t *out, request_t *request, json_object *json, tmpl_pair_list_t list)
+int mod_json_object_to_map(TALLOC_CTX *ctx, fr_dcursor_t *out, request_t *request, json_object *json, fr_dict_attr_t const *list)
 {
        json_object     *list_obj;
-       char const      *list_name = fr_table_str_by_value(pair_list_table, list, "<INVALID>");
+       char const      *list_name = list->name;
 
        /*
         *      Check for a section matching the specified list