]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Even detachable requests should inherit log settings from their parents
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Feb 2021 19:56:49 +0000 (19:56 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Feb 2021 19:56:49 +0000 (19:56 +0000)
src/lib/server/request.c

index 2a1797746d1bfc75c9fb3448ce92cdd6f89cafd3..c9c496ac1de440923694fcbac9251aae5f74d93b 100644 (file)
@@ -97,13 +97,14 @@ static inline void CC_HINT(always_inline) request_log_init_child(request_t *chil
 
 static inline void CC_HINT(always_inline) request_log_init_detachable(request_t *child, request_t const *parent)
 {
+       request_log_init_child(child, parent);
+
        /*
         *      Ensure that we use our own version of the logging
         *      information, and not the original request one.
         */
        child->log.dst = talloc_zero(child, log_dst_t);
        memcpy(child->log.dst, parent->log.dst, sizeof(*child->log.dst));
-       child->log.lvl = parent->log.lvl;
 }
 
 static inline CC_HINT(always_inline) int request_detachable_init(request_t *child, request_t *parent)