From 2241473ee62b7d5d60d20ef0c264e6080cbba8db Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 24 May 2015 00:56:13 +0100 Subject: Added bad password test --- src/otr/otr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/otr/otr.c') diff --git a/src/otr/otr.c b/src/otr/otr.c index e568af56..4d97cfb9 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -163,6 +163,8 @@ otr_init(void) log_info("Initialising OTR"); OTRL_INIT; + jid = NULL; + ops.policy = cb_policy; ops.is_logged_in = cb_is_logged_in; ops.inject_message = cb_inject_message; @@ -181,6 +183,7 @@ otr_shutdown(void) { if (jid) { free(jid); + jid = NULL; } } @@ -747,4 +750,4 @@ void otr_free_message(char *message) { otrl_message_free(message); -} \ No newline at end of file +} -- cgit 1.4.1-2-gfad0