/dev/tomkiewicz/gg11: f52357f34177: Gadu-Gadu: wipe password

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Sat Aug 17 04:20:53 EDT 2013


Changeset: f52357f34177342f663a13a5eb01be29724352c5
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2013-08-17 10:20 +0200
Branch:	 default
URL: https://hg.pidgin.im/dev/tomkiewicz/gg11/rev/f52357f34177

Description:

Gadu-Gadu: wipe password

diffstat:

 libpurple/protocols/gg/gg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c
--- a/libpurple/protocols/gg/gg.c
+++ b/libpurple/protocols/gg/gg.c
@@ -665,7 +665,7 @@ static void ggp_login(PurpleAccount *acc
 		purple_connection_error(gc,
 			PURPLE_CONNECTION_ERROR_INVALID_USERNAME,
 			_("The username specified is invalid."));
-		g_free(glp->password);
+		purple_str_wipe(glp->password);
 		g_free(glp);
 		return;
 	}
@@ -696,7 +696,7 @@ static void ggp_login(PurpleAccount *acc
 			purple_connection_error(gc,
 				PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT,
 				_("SSL support unavailable"));
-			g_free(glp->password);
+			purple_str_wipe(glp->password);
 			g_free(glp);
 			return;
 		}
@@ -722,7 +722,7 @@ static void ggp_login(PurpleAccount *acc
 
 	info->session = gg_login(glp);
 	g_free(glp->connect_host);
-	g_free(glp->password);
+	purple_str_wipe(glp->password);
 	g_free(glp);
 
 	purple_connection_update_progress(gc, _("Connecting"), 0, 2);



More information about the Commits mailing list