diff options
-rw-r--r-- | src/util/pseudonym.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c index 48852ee378..fa48e19e3e 100644 --- a/src/util/pseudonym.c +++ b/src/util/pseudonym.c @@ -248,6 +248,12 @@ read_info (const struct GNUNET_CONFIGURATION_Handle *cfg, fn = get_data_filename (cfg, PS_METADATA_DIR, nsid); GNUNET_assert (fn != NULL); + if (GNUNET_YES != + GNUNET_DISK_file_test (fn)) + { + GNUNET_free (fn); + return GNUNET_SYSERR; + } fileR = GNUNET_BIO_read_open (fn); if (fileR == NULL) { |