aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-09-16 03:44:37 -0300
committerdequis <dx@dxzone.com.ar>2015-10-08 01:58:59 -0300
commitdf215a327ad0619ff5be93ce4a38dddb2c297ac4 (patch)
treec5644120829a496e8e7343f9f3a884aaf3c8c000
parentc2969f9feb1878cc9dbe143b7adeda56b66557e6 (diff)
jabber: Fix leak in jabber_gmail_handle_new
From coverity. That g_strdup_printf() was really pointless, slightly ashamed we didn't notice that in the review of the patch.
-rw-r--r--protocols/jabber/iq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c
index 327cc859..b3fe4206 100644
--- a/protocols/jabber/iq.c
+++ b/protocols/jabber/iq.c
@@ -384,8 +384,8 @@ static xt_status jabber_gmail_handle_new(struct im_connection *ic, struct xt_nod
{
struct xt_node *response;
struct jabber_data *jd = ic->proto_data;
-
- response = jabber_make_packet("iq", "result", g_strdup_printf("%s@%s", jd->username, jd->server), NULL);
+
+ response = jabber_make_packet("iq", "result", jd->me, NULL);
jabber_cache_add(ic, response, NULL);
if (!jabber_write_packet(ic, response)) {