diff options
-rw-r--r-- | lib/arc.c | 2 | ||||
-rw-r--r-- | storage_xml.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -199,7 +199,7 @@ int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *passwor if( clear_len < 0 ) { *clear = g_strdup( "" ); - return 0; + return -1; } /* Prepare buffers and the key + IV */ diff --git a/storage_xml.c b/storage_xml.c index af77190e..0525fef5 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -149,7 +149,7 @@ static void xml_start_element( GMarkupParseContext *ctx, const gchar *element_na g_set_error( error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, "Unknown protocol: %s", protocol ); else if( ( pass_len = base64_decode( pass_b64, (unsigned char**) &pass_cr ) ) && - arc_decode( pass_cr, pass_len, &password, xd->given_pass ) ) + arc_decode( pass_cr, pass_len, &password, xd->given_pass ) >= 0 ) { xd->current_account = account_add( irc->b, prpl, handle, password ); if( server ) |