From: Pablo Neira Ayuso <[email protected]>

Several talloc_zero in logging use NULL context, use tall_log_ctx
instead.
---
 src/logging.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/logging.c b/src/logging.c
index 7b1ab13..7fabfcb 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -448,7 +448,7 @@ const char *log_vty_command_string(const struct log_info 
*info)
                size += strlen(loglevel_strs[i].str) + 1;
 
        rem = size;
-       str = talloc_zero_size(NULL, size);
+       str = talloc_zero_size(tall_log_ctx, size);
        if (!str)
                return NULL;
 
@@ -519,7 +519,7 @@ const char *log_vty_command_description(const struct 
log_info *info)
 
        size += strlen("Global setting for all subsystems") + 1;
        rem = size;
-       str = talloc_zero_size(NULL, size);
+       str = talloc_zero_size(tall_log_ctx, size);
        if (!str)
                return NULL;
 
-- 
1.7.2.3


Reply via email to