Fix some lazily resolved symbol named
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Oct 2012 21:56:26 +0000 (21:56 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Oct 2012 21:56:26 +0000 (21:56 +0000)
src/modules/rlm_rest/rest.h
src/modules/rlm_rest/rlm_rest.c

index 6a24dc4..7befe58 100644 (file)
@@ -91,7 +91,7 @@ extern const FR_NAME_NUMBER http_auth_table[];
 
 extern const FR_NAME_NUMBER http_method_table[];
 
-extern const FR_NAME_NUMBER http_body_table[];
+extern const FR_NAME_NUMBER http_body_type_table[];
 
 extern const FR_NAME_NUMBER http_content_header_table[];
 
index 1af8c2e..44bf7ca 100644 (file)
@@ -190,7 +190,7 @@ static int parse_sub_section(CONF_SECTION *parent,
        config->method = fr_str2int(http_method_table, config->method_str,
                                    HTTP_METHOD_CUSTOM);
 
-       config->body = fr_str2int(http_body_table, config->body_str,
+       config->body = fr_str2int(http_body_type_table, config->body_str,
                                  HTTP_BODY_UNKNOWN);
 
        if (config->body == HTTP_BODY_UNKNOWN) {