Fix bug/typo introduced in 0c78d31c753d (Reported by franky)
authorMikael Berthe <mikael@lilotux.net>
Thu, 05 Nov 2015 23:11:43 +0100
changeset 2217 c9640971beec
parent 2216 fa516ef22145
child 2218 b56be18d5a04
Fix bug/typo introduced in 0c78d31c753d (Reported by franky)
mcabber/mcabber/otr.c
--- a/mcabber/mcabber/otr.c	Thu Nov 05 20:58:57 2015 +0100
+++ b/mcabber/mcabber/otr.c	Thu Nov 05 23:11:43 2015 +0100
@@ -607,7 +607,7 @@
 
   *encryption_status = 0;
 
-  if (!msg || !buddy || !encryption_status)
+  if (!msg || !buddy || !*encryption_status)
     return NULL;
 
   if (ctx->msgstate == OTRL_MSGSTATE_PLAINTEXT)