aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-17 21:12:09 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-17 21:12:09 +0000
commitbed39036b47e1b820ee40d645f743e18520c4f8c (patch)
tree6218facf7c12448327e82780896a609ac000e128 /src/topology
parenta6d3a7a355634ef0396f009f9286962cdc4c6077 (diff)
downloadgnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.tar.gz
gnunet-bed39036b47e1b820ee40d645f743e18520c4f8c.zip
fixes
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/gnunet-daemon-topology.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index 33eda8a0d..a73c64da0 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -1089,6 +1089,13 @@ read_friends_file (const struct GNUNET_CONFIGURATION_Handle *cfg)
1089 return; 1089 return;
1090 } 1090 }
1091 data = GNUNET_malloc_large (frstat.st_size); 1091 data = GNUNET_malloc_large (frstat.st_size);
1092 if (data == NULL)
1093 {
1094 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1095 _("Failed to read friends list from `%s': out of memory\n"), fn);
1096 GNUNET_free (fn);
1097 return;
1098 }
1092 if (frstat.st_size != 1099 if (frstat.st_size !=
1093 GNUNET_DISK_fn_read (fn, data, frstat.st_size)) 1100 GNUNET_DISK_fn_read (fn, data, frstat.st_size))
1094 { 1101 {