]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set type of talloc chunk when memduping it
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 20:05:35 +0000 (13:05 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Jan 2018 20:05:35 +0000 (13:05 -0700)
src/main/auth.c

index a6d2876bf16937d8986388ab7a7301a5410cba5d..bd972dd92dd2cd61cd04445532c8b4d1f3152363 100644 (file)
@@ -556,8 +556,8 @@ static rlm_rcode_t virtual_server_async(REQUEST *request, bool parent)
        fr_io_final_t final;
 
        if (parent) {
-               request->async = talloc_memdup(request, request->parent->async,
-                                              sizeof(fr_async_t));
+               request->async = talloc_memdup(request, request->parent->async, sizeof(fr_async_t));
+               talloc_set_name_const(request->async, talloc_get_name(request->parent->async));
        }
 
        RDEBUG("server %s {", cf_section_name2(request->server_cs));