Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp_helper.c @ 2209:412322678d59
Fix segfault when receiving a <private> Carbons message tag
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 23 Oct 2015 19:55:08 +0200 |
parents | a37fbc3ac6aa |
children | ea90906cb691 |
comparison
equal
deleted
inserted
replaced
2208:7c843b29571b | 2209:412322678d59 |
---|---|
263 const char *xmlns) | 263 const char *xmlns) |
264 { | 264 { |
265 LmMessageNode *x; | 265 LmMessageNode *x; |
266 const char *p; | 266 const char *p; |
267 | 267 |
268 if (!node) return NULL; | |
269 | |
268 for (x = node->children ; x; x = x->next) { | 270 for (x = node->children ; x; x = x->next) { |
269 if ((p = lm_message_node_get_attribute(x, "xmlns")) && !strcmp(p, xmlns)) | 271 if ((p = lm_message_node_get_attribute(x, "xmlns")) && !strcmp(p, xmlns)) |
270 break; | 272 break; |
271 } | 273 } |
272 return x; | 274 return x; |