diff options
-rw-r--r-- | src/dht/gnunet-service-dht.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index f28e39932..1e2ba80a1 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -1155,7 +1155,7 @@ static int route_result_message(void *cls, | |||
1155 | struct DHTQueryRecord *record; | 1155 | struct DHTQueryRecord *record; |
1156 | struct DHTRouteSource *pos; | 1156 | struct DHTRouteSource *pos; |
1157 | struct PeerInfo *peer_info; | 1157 | struct PeerInfo *peer_info; |
1158 | struct GNUNET_MessageHeader *hello_msg; | 1158 | const struct GNUNET_MessageHeader *hello_msg; |
1159 | 1159 | ||
1160 | /** | 1160 | /** |
1161 | * If a find peer result message is received and contains a valid | 1161 | * If a find peer result message is received and contains a valid |
@@ -1172,7 +1172,7 @@ static int route_result_message(void *cls, | |||
1172 | GNUNET_break_op(0); | 1172 | GNUNET_break_op(0); |
1173 | 1173 | ||
1174 | hello_msg = &msg[1]; | 1174 | hello_msg = &msg[1]; |
1175 | if ((ntohs(hello_msg->type) != GNUNET_MESSAGE_TYPE_HELLO) || (GNUNET_SYSERR == GNUNET_HELLO_get_id(hello_msg, &new_peer))) | 1175 | if ((ntohs(hello_msg->type) != GNUNET_MESSAGE_TYPE_HELLO) || (GNUNET_SYSERR == GNUNET_HELLO_get_id((const struct GNUNET_HELLO_Message *)hello_msg, &new_peer))) |
1176 | { | 1176 | { |
1177 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%s:%s Received non-HELLO message type in find peer result message!\n", my_short_id, "DHT"); | 1177 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%s:%s Received non-HELLO message type in find peer result message!\n", my_short_id, "DHT"); |
1178 | GNUNET_break_op(0); | 1178 | GNUNET_break_op(0); |