From: Arran Cudbard-Bell Date: Tue, 4 Aug 2015 02:28:34 +0000 (-0400) Subject: json_object_get_string_len should operate on output of json_object_get_string X-Git-Tag: release_3_0_10~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=934bfb505edd5a1d8424dee14b609264297bac89;p=thirdparty%2Ffreeradius-server.git json_object_get_string_len should operate on output of json_object_get_string --- diff --git a/src/modules/rlm_couchbase/jsonc_missing.c b/src/modules/rlm_couchbase/jsonc_missing.c index fe676ad23a1..183302279d3 100644 --- a/src/modules/rlm_couchbase/jsonc_missing.c +++ b/src/modules/rlm_couchbase/jsonc_missing.c @@ -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