diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-11 15:22:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-11 15:22:13 +0000 |
commit | 2729dc7c819e58338e2f56531d44475198ebed6c (patch) | |
tree | 532da5ed594fae1b2e520d2acf74cf8d8d700e4d /src/util/configuration.c | |
parent | a85261acba2c59241458bff597db815de85fa771 (diff) | |
download | gnunet-2729dc7c819e58338e2f56531d44475198ebed6c.tar.gz gnunet-2729dc7c819e58338e2f56531d44475198ebed6c.zip |
-fix crash on recursion with NULL def
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r-- | src/util/configuration.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c index 039f764ca..6176b1734 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c | |||
@@ -1055,6 +1055,8 @@ expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1055 | char *end; | 1055 | char *end; |
1056 | unsigned int lopen; | 1056 | unsigned int lopen; |
1057 | 1057 | ||
1058 | if (NULL == orig) | ||
1059 | return NULL; | ||
1058 | if (depth > 128) | 1060 | if (depth > 128) |
1059 | { | 1061 | { |
1060 | LOG (GNUNET_ERROR_TYPE_WARNING, | 1062 | LOG (GNUNET_ERROR_TYPE_WARNING, |