aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-13 15:26:59 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-13 15:26:59 +0000
commit11d9f1f3b73a9eaa8ddf9a52e3029956d77fbf23 (patch)
treeef6c8643d70ac3d247b8cde9b74882594b11e823 /src/peerinfo
parente05cff45c3a0cc64197962ade380ac57093b6623 (diff)
downloadgnunet-11d9f1f3b73a9eaa8ddf9a52e3029956d77fbf23.tar.gz
gnunet-11d9f1f3b73a9eaa8ddf9a52e3029956d77fbf23.zip
-cleanup
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 9c3ab4032..4b42708ab 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -449,6 +449,7 @@ bind_address (const struct GNUNET_PeerIdentity *peer,
449 delta = GNUNET_HELLO_equals (mrg, host->hello, GNUNET_TIME_absolute_get ()); 449 delta = GNUNET_HELLO_equals (mrg, host->hello, GNUNET_TIME_absolute_get ());
450 if (delta.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value) 450 if (delta.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value)
451 { 451 {
452 /* no differences, just ignore the update */
452 GNUNET_free (mrg); 453 GNUNET_free (mrg);
453 return; 454 return;
454 } 455 }
@@ -463,7 +464,8 @@ bind_address (const struct GNUNET_PeerIdentity *peer,
463 &cnt); 464 &cnt);
464 if (0 == cnt) 465 if (0 == cnt)
465 { 466 {
466 /* no valid addresses, don't put HELLO on disk */ 467 /* no valid addresses, don't put HELLO on disk; in fact,
468 if one exists on disk, remove it */
467 (void) UNLINK (fn); 469 (void) UNLINK (fn);
468 } 470 }
469 else 471 else