Mercurial > pidgin
comparison libpurple/protocols/jabber/jingle/jingle.c @ 31108:4b101cad58e7
Don't crash on invalid/unexpected jingle transport types. Fixes #13136.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | nikita@beem-project.com |
---|---|
date | Sat, 08 Jan 2011 02:58:06 +0000 |
parents | a8cc50c2279f |
children | 231c9635b82a |
comparison
equal
deleted
inserted
replaced
31107:4f89666c8d81 | 31108:4b101cad58e7 |
---|---|
40 #endif | 40 #endif |
41 | 41 |
42 GType | 42 GType |
43 jingle_get_type(const gchar *type) | 43 jingle_get_type(const gchar *type) |
44 { | 44 { |
45 if (type == NULL) | |
46 return G_TYPE_NONE; | |
47 | |
45 if (!strcmp(type, JINGLE_TRANSPORT_RAWUDP)) | 48 if (!strcmp(type, JINGLE_TRANSPORT_RAWUDP)) |
46 return JINGLE_TYPE_RAWUDP; | 49 return JINGLE_TYPE_RAWUDP; |
47 else if (!strcmp(type, JINGLE_TRANSPORT_ICEUDP)) | 50 else if (!strcmp(type, JINGLE_TRANSPORT_ICEUDP)) |
48 return JINGLE_TYPE_ICEUDP; | 51 return JINGLE_TYPE_ICEUDP; |
49 #if 0 | 52 #if 0 |