1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00
profanity/src
Michael Vetter 2dc0cc489c ox: dont print empty body message
Fix https://github.com/profanity-im/profanity/issues/1693

```
@StefanKropp @DebXWoody please check `_handle_ox_chat()` I don't
understand what you are doing there.
1)
First plain is assigned `message->plain =
p_ox_gpg_decrypt(xmpp_stanza_get_text(ox));`
and then in the same if block you overwrite this with `message->plain =
xmpp_stanza_get_text(b);` without freeing the old value as far as I can
see.

2)
Sometimes even doing `message->plain = "OX error: No payload found";`.
Shouldn't there be a `strdup()`? I think later on we try to free the
whole message struct. So we can't mix this static things.
```
2022-04-27 17:00:30 +02:00
..
command ox: print bad usage instead of custom message 2022-04-27 16:13:05 +02:00
config Dont show presence status changes by default 2022-04-07 17:32:37 +02:00
event add profanity-specific CAfile 2022-03-22 11:44:01 +01:00
omemo add files_file_in_account_data_path() 2022-03-13 14:15:02 +01:00
otr add files_file_in_account_data_path() 2022-03-13 14:15:02 +01:00
pgp Merge pull request #1644 from profanity-im/ox-polish 2022-03-21 10:08:13 +01:00
plugins Fix python executed during configure 2022-02-18 19:45:31 +01:00
tools Fix a segfault when uploading or downloading files 2022-04-02 01:15:34 +02:00
ui Show return symbol for embedded newlines 2022-04-12 12:17:36 +03:00
xmpp ox: dont print empty body message 2022-04-27 17:00:30 +02:00
common.c use g_mkdir_with_parents() instead of home-baked solution 2022-03-14 13:17:46 +01:00
common.h use g_mkdir_with_parents() instead of home-baked solution 2022-03-14 13:17:46 +01:00
database.c add files_file_in_account_data_path() 2022-03-13 14:15:02 +01:00
database.h Apply coding style 2020-07-07 14:18:57 +02:00
log.c Fix logging (this time for real) 2022-04-01 14:56:08 +02:00
log.h Remove log_reinit() 2020-12-11 11:18:24 +01:00
main.c first step to remove libmesode 2021-10-27 22:45:44 +02:00
profanity.c Format new register code correctly 2021-10-13 21:32:44 +02:00
profanity.h Update copyright 2021-01-08 16:36:30 +01:00