aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-04-11 12:27:42 +0000
committerChristian Grothoff <christian@grothoff.org>2014-04-11 12:27:42 +0000
commitd5f98dfba6a29e3386500a63f76231b18cfc8045 (patch)
tree9a1335567a64e5d07e33b1f69a52a2abeb5743b8 /src/core
parente91e76861238b92c43c1938d4bf7179a94ba4b37 (diff)
downloadgnunet-d5f98dfba6a29e3386500a63f76231b18cfc8045.tar.gz
gnunet-d5f98dfba6a29e3386500a63f76231b18cfc8045.zip
-fix crash on shutdown
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api_iterate_peers.c1
-rw-r--r--src/core/gnunet-core.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index 425d3579c..f5a3c0e98 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -168,6 +168,7 @@ transmit_monitor_request (void *cls,
168 struct GNUNET_MessageHeader *msg; 168 struct GNUNET_MessageHeader *msg;
169 int msize; 169 int msize;
170 170
171 mh->th = NULL;
171 msize = sizeof (struct GNUNET_MessageHeader); 172 msize = sizeof (struct GNUNET_MessageHeader);
172 if ((size < msize) || (NULL == buf)) 173 if ((size < msize) || (NULL == buf))
173 { 174 {
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c
index 25127da66..0f475d08b 100644
--- a/src/core/gnunet-core.c
+++ b/src/core/gnunet-core.c
@@ -119,10 +119,12 @@ monitor_cb (void *cls,
119 } 119 }
120 now_str = GNUNET_STRINGS_absolute_time_to_string (now); 120 now_str = GNUNET_STRINGS_absolute_time_to_string (now);
121 FPRINTF (stdout, 121 FPRINTF (stdout,
122 _("%24s: %-17s %4s\n"), 122 _("%24s: %-30s %4s (timeout in %6s)\n"),
123 now_str, 123 now_str,
124 state_str, 124 state_str,
125 GNUNET_i2s (peer)); 125 GNUNET_i2s (peer),
126 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (timeout),
127 GNUNET_YES));
126} 128}
127 129
128 130