diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:56:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-17 21:56:21 +0000 |
commit | 5bb4b33bf7cc18112ce1770e0012096e7bb9426b (patch) | |
tree | 5c941ed913af03aef6b13018555a05a04ea4f94e /src/peerinfo | |
parent | bed39036b47e1b820ee40d645f743e18520c4f8c (diff) | |
download | gnunet-5bb4b33bf7cc18112ce1770e0012096e7bb9426b.tar.gz gnunet-5bb4b33bf7cc18112ce1770e0012096e7bb9426b.zip |
fixes
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 7 |
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; |