/pidgin/main: 48af26131376: Prevent NULL pointer deref when init...
Daniel Atallah
datallah at pidgin.im
Sun Feb 24 22:48:17 EST 2013
Changeset: 48af26131376ef513620056fefc95c404471d07f
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2013-02-24 22:48 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/48af26131376
Description:
Prevent NULL pointer deref when initating a rtp session with an unrecognized resource
diffstat:
libpurple/protocols/jabber/jingle/rtp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/libpurple/protocols/jabber/jingle/rtp.c b/libpurple/protocols/jabber/jingle/rtp.c
--- a/libpurple/protocols/jabber/jingle/rtp.c
+++ b/libpurple/protocols/jabber/jingle/rtp.c
@@ -966,7 +966,8 @@ jingle_rtp_initiate_media(JabberStream *
g_free(resource);
if (!jbr) {
- purple_debug_error("jingle-rtp", "Could not find buddy's resource\n");
+ purple_debug_error("jingle-rtp", "Could not find buddy's resource - %s\n", resource);
+ return FALSE;
}
if (jabber_resource_has_capability(jbr, JINGLE_TRANSPORT_ICEUDP)) {
More information about the Commits
mailing list