Fix crash in rare corner case in password en/decryption.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Mar 2016 07:43:58 +0000 (08:43 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 24 Mar 2016 07:43:58 +0000 (08:43 +0100)
src/password.c

index 826d316..e849cab 100644 (file)
@@ -295,7 +295,6 @@ gchar *password_encrypt_gnutls(const gchar *password,
                debug_print("Could not acquire a CSP handle.\n");
 #endif
                g_free(key.data);
-               g_free(iv.data);
                return NULL;
        }
 
@@ -468,7 +467,6 @@ gchar *password_decrypt_gnutls(const gchar *password,
                debug_print("Could not acquire a CSP handle.\n");
 #endif
                g_free(key.data);
-               g_free(iv.data);
                g_strfreev(tokens);
                return NULL;
        }