aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-17 21:56:21 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-17 21:56:21 +0000
commit5bb4b33bf7cc18112ce1770e0012096e7bb9426b (patch)
tree5c941ed913af03aef6b13018555a05a04ea4f94e /src/peerinfo
parentbed39036b47e1b820ee40d645f743e18520c4f8c (diff)
downloadgnunet-5bb4b33bf7cc18112ce1770e0012096e7bb9426b.tar.gz
gnunet-5bb4b33bf7cc18112ce1770e0012096e7bb9426b.zip
fixes
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 7c1f53d4b..63c605705 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -606,10 +606,11 @@ discard_hosts_helper (void *cls, const char *fn)
606 int size; 606 int size;
607 607
608 size = GNUNET_DISK_fn_read (fn, buffer, sizeof (buffer)); 608 size = GNUNET_DISK_fn_read (fn, buffer, sizeof (buffer));
609 if ((size < sizeof (struct GNUNET_MessageHeader)) && (0 != UNLINK (fn))) 609 if (size < sizeof (struct GNUNET_MessageHeader))
610 { 610 {
611 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING | 611 if (0 != UNLINK (fn))
612 GNUNET_ERROR_TYPE_BULK, "unlink", fn); 612 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING |
613 GNUNET_ERROR_TYPE_BULK, "unlink", fn);
613 return GNUNET_OK; 614 return GNUNET_OK;
614 } 615 }
615 hello = (const struct GNUNET_HELLO_Message *) buffer; 616 hello = (const struct GNUNET_HELLO_Message *) buffer;