gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: UTIL: Prevent segfaults in config writeo


From: gnunet
Subject: [gnunet] branch master updated: UTIL: Prevent segfaults in config writeout. Fixes #6913
Date: Mon, 05 Jul 2021 09:46:04 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 56af99b50 UTIL: Prevent segfaults in config writeout. Fixes #6913
56af99b50 is described below

commit 56af99b507d5248966962110a5803ab2af52df0d
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Mon Jul 5 09:42:54 2021 +0200

    UTIL: Prevent segfaults in config writeout. Fixes #6913
---
 src/util/gnunet-config.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c
index d619610c5..3932ff1bf 100644
--- a/src/util/gnunet-config.c
+++ b/src/util/gnunet-config.c
@@ -251,6 +251,9 @@ run (void *cls,
   {
     char *cfg_fn = NULL;
 
+    if (NULL == out)
+      out = GNUNET_CONFIGURATION_dup (cfg);
+
     if (NULL == cfgfile)
     {
       const char *xdg = getenv ("XDG_CONFIG_HOME");

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]