diff options
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index e2ea342..14dcbd0 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -383,13 +383,13 @@ on_handle_message (void *cls, | |||
383 | { | 383 | { |
384 | struct GNUNET_CHAT_Handle *handle = cls; | 384 | struct GNUNET_CHAT_Handle *handle = cls; |
385 | 385 | ||
386 | struct GNUNET_CHAT_Context *context = request_handle_context_by_room( | 386 | if (GNUNET_OK != request_handle_context_by_room(handle, room)) |
387 | handle, room | ||
388 | ); | ||
389 | |||
390 | if (!context) | ||
391 | return; | 387 | return; |
392 | 388 | ||
389 | struct GNUNET_CHAT_Context *context = GNUNET_CONTAINER_multihashmap_get( | ||
390 | handle->contexts, GNUNET_MESSENGER_room_get_key(room) | ||
391 | ); | ||
392 | |||
393 | const struct GNUNET_TIME_Absolute timestamp = GNUNET_TIME_absolute_ntoh( | 393 | const struct GNUNET_TIME_Absolute timestamp = GNUNET_TIME_absolute_ntoh( |
394 | msg->header.timestamp | 394 | msg->header.timestamp |
395 | ); | 395 | ); |