diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/jabber/jabber.c | 2 | ||||
-rw-r--r-- | protocols/jabber/jabber_util.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 30e55159..b6fbb6b9 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -316,6 +316,8 @@ static void jabber_logout( struct im_connection *ic ) jabber_buddy_remove_all( ic ); xt_free( jd->xt ); + + md5_free( &jd->cached_id_prefix ); g_free( jd->oauth2_access_token ); g_free( jd->away_message ); diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index 1a3d9fd4..0276db9f 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -147,7 +147,7 @@ void jabber_cache_add( struct im_connection *ic, struct xt_node *node, jabber_ca id_hash = jd->cached_id_prefix; md5_append( &id_hash, (md5_byte_t*) &next_id, sizeof( next_id ) ); - md5_finish( &id_hash, id_sum ); + md5_digest_keep( &id_hash, id_sum ); asc_hash = base64_encode( id_sum, 12 ); id = g_strdup_printf( "%s%s", JABBER_CACHED_ID, asc_hash ); |