From: Arran Cudbard-Bell Date: Sun, 6 Dec 2020 04:20:44 +0000 (-0700) Subject: Get pointer to existing extension X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6713ba05e5dd261a68b3c66016ea2b55cf88eeca;p=thirdparty%2Ffreeradius-server.git Get pointer to existing extension --- diff --git a/src/lib/util/ext.c b/src/lib/util/ext.c index a8d03f49907..ed60a1f033e 100644 --- a/src/lib/util/ext.c +++ b/src/lib/util/ext.c @@ -194,6 +194,8 @@ void *fr_ext_copy(fr_ext_t const *def, TALLOC_CTX **chunk_dst, TALLOC_CTX const ext_dst_ptr = fr_ext_alloc_size(def, chunk_dst, ext, fr_ext_len(def, chunk_src, ext)); } + } else { + ext_dst_ptr = fr_ext_ptr(*chunk_dst, ext_dst_offsets[ext], info->has_hdr); } if (info->copy) {