diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-15 23:41:43 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-15 23:41:43 +0100 |
commit | b89df2053b1b0f9e33d676606546ac091a142e04 (patch) | |
tree | 77bdfa18e1f9900219c65dcb157b34d59bc7ae90 /src/messenger/gnunet-service-messenger_service.c | |
parent | cfd3db44a82330272752ab3da08f1823c9867652 (diff) | |
download | gnunet-b89df2053b1b0f9e33d676606546ac091a142e04.tar.gz gnunet-b89df2053b1b0f9e33d676606546ac091a142e04.zip |
-fix crash when member left messenger room
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/gnunet-service-messenger_service.c')
-rw-r--r-- | src/messenger/gnunet-service-messenger_service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/messenger/gnunet-service-messenger_service.c b/src/messenger/gnunet-service-messenger_service.c index b53b72af8..83d7632d8 100644 --- a/src/messenger/gnunet-service-messenger_service.c +++ b/src/messenger/gnunet-service-messenger_service.c | |||
@@ -94,7 +94,7 @@ iterate_destroy_rooms (void *cls, | |||
94 | void *value) | 94 | void *value) |
95 | { | 95 | { |
96 | struct GNUNET_MESSENGER_SrvRoom *room = value; | 96 | struct GNUNET_MESSENGER_SrvRoom *room = value; |
97 | destroy_room (room); | 97 | destroy_room (room, GNUNET_NO); |
98 | return GNUNET_YES; | 98 | return GNUNET_YES; |
99 | } | 99 | } |
100 | 100 | ||
@@ -220,7 +220,7 @@ open_service_room (struct GNUNET_MESSENGER_Service *service, | |||
220 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))) | 220 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST))) |
221 | return GNUNET_YES; | 221 | return GNUNET_YES; |
222 | 222 | ||
223 | destroy_room (room); | 223 | destroy_room (room, GNUNET_YES); |
224 | return GNUNET_NO; | 224 | return GNUNET_NO; |
225 | } | 225 | } |
226 | 226 | ||
@@ -253,7 +253,7 @@ entry_service_room (struct GNUNET_MESSENGER_Service *service, | |||
253 | } | 253 | } |
254 | else | 254 | else |
255 | { | 255 | { |
256 | destroy_room (room); | 256 | destroy_room (room, GNUNET_YES); |
257 | return GNUNET_NO; | 257 | return GNUNET_NO; |
258 | } | 258 | } |
259 | 259 | ||
@@ -287,7 +287,7 @@ close_service_room (struct GNUNET_MESSENGER_Service *service, | |||
287 | { | 287 | { |
288 | if (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove (service->rooms, key, room)) | 288 | if (GNUNET_OK == GNUNET_CONTAINER_multihashmap_remove (service->rooms, key, room)) |
289 | { | 289 | { |
290 | destroy_room (room); | 290 | destroy_room (room, GNUNET_YES); |
291 | return GNUNET_YES; | 291 | return GNUNET_YES; |
292 | } | 292 | } |
293 | else | 293 | else |