diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-05 20:07:44 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-05 20:07:44 +0200 |
commit | c18988ad59fa8a6653e73abd4b420bd21e9bb2fb (patch) | |
tree | 05b543ace89c1c6bdc41bdf6ae08bf307325b909 | |
parent | aec4779ce9030fdf3adb47f7791566a5aacf1a6e (diff) | |
download | libgnunetchat-c18988ad59fa8a6653e73abd4b420bd21e9bb2fb.tar.gz libgnunetchat-c18988ad59fa8a6653e73abd4b420bd21e9bb2fb.zip |
Fixed wrong usage of function to request a context
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-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 | ); |