From 3d0444f9e6d64d6bc6b109cb743b9e08abcada0e Mon Sep 17 00:00:00 2001 From: Nils Durner Date: Mon, 24 Aug 2009 20:07:53 +0000 Subject: [PATCH] return error if filename could not be expanded --- src/util/configuration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/configuration.c b/src/util/configuration.c index ff177d966..0ce672dd9 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -602,6 +602,8 @@ GNUNET_CONFIGURATION_get_value_filename (const struct GNUNET_CONFIGURATION_Handl tmp = GNUNET_CONFIGURATION_expand_dollar (data, tmp); *value = GNUNET_STRINGS_filename_expand (tmp); GNUNET_free (tmp); + if (*value == NULL) + ret = GNUNET_SYSERR; } else { -- 2.25.1