about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-03-31 13:21:16 +0200
committerGitHub <noreply@github.com>2023-03-31 13:21:16 +0200
commit2e1d5d03dc1d8d817532fd71d9e6489f56118415 (patch)
tree9d3945225d6bf15faad9613fa72689612ecde776 /src/otr/otr.c
parent2093fe417f6a1d7f8741613a83ed81e18ae272c9 (diff)
parent407905cfc5a60e90ccf149929eb9517e8287ae57 (diff)
downloadprofani-tty-2e1d5d03dc1d8d817532fd71d9e6489f56118415.tar.gz
Merge pull request #1802 from H3rnand3zzz/pgp-fix
Security fix of OTR, PGP and other
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 3297ce57..bbad51d5 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -151,7 +151,7 @@ cb_gone_secure(void* opdata, ConnContext* context)
 {
     ProfChatWin* chatwin = wins_get_chat(context->username);
     if (!chatwin) {
-        chatwin = (ProfChatWin*)wins_new_chat(context->username);
+        chatwin = chatwin_new(context->username);
     }
 
     chatwin_otr_secured(chatwin, otr_is_trusted(context->username));