From: Arran Cudbard-Bell Date: Thu, 4 May 2017 22:16:17 +0000 (-0400) Subject: len not needed here as buff is talloced X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f93b9782a66def65e87aff91faa4ceb756e8e3;p=thirdparty%2Ffreeradius-server.git len not needed here as buff is talloced --- diff --git a/src/main/map.c b/src/main/map.c index 197ad983371..98d63d89aa2 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -99,7 +99,7 @@ bool map_cast_from_hex(vp_map_t *map, FR_TOKEN rhs_type, char const *rhs) ptr = talloc_array(map, uint8_t, len >> 1); if (!ptr) return false; - len = fr_hex2bin(ptr, len >> 1, rhs + 2, len); + fr_hex2bin(ptr, len >> 1, rhs + 2, len); /* * Assign but don't dup.