]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
json_object_get_string_len should operate on output of json_object_get_string
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Aug 2015 02:28:34 +0000 (22:28 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Aug 2015 02:28:34 +0000 (22:28 -0400)
src/modules/rlm_couchbase/jsonc_missing.c

index fe676ad23a14aee2833926f3eaa014def4078a96..183302279d3b892d43373d54eecb41c001c092ed 100644 (file)
@@ -40,7 +40,7 @@ RCSID("$Id$")
 int json_object_get_string_len(json_object *obj) {
        if (json_object_get_type(obj) != json_type_string)
                return 0;
-       return (int)strlen(json_object_to_json_string(obj));
+       return (int)strlen(json_object_get_string(obj));
 }
 #endif