/soc/2013/ankitkv/gobjectification: d53f618a91c4: jabber: make s...
Ankit Vani
a at nevitus.org
Wed Oct 2 07:45:13 EDT 2013
Changeset: d53f618a91c4e55a0412927f16e498a94c83ae2b
Author: Ankit Vani <a at nevitus.org>
Date: 2013-10-02 17:13 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d53f618a91c4
Description:
jabber: make sure connection is valid before attempting to send data
diffstat:
libpurple/protocols/jabber/jabber.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff --git a/libpurple/protocols/jabber/jabber.c b/libpurple/protocols/jabber/jabber.c
--- a/libpurple/protocols/jabber/jabber.c
+++ b/libpurple/protocols/jabber/jabber.c
@@ -381,6 +381,8 @@ static int jabber_do_send(JabberStream *
{
int ret;
+ g_return_val_if_fail(PURPLE_IS_CONNECTION(js->gc), -1);
+
if (js->gsc)
ret = purple_ssl_write(js->gsc, data, len);
else
More information about the Commits
mailing list