comparison mcabber/src/jab_iq.c @ 1198:3a2ac3d96eed

Fix a segfault in XMPP Ping support There is no allocation in jutil_iqresult() so x must not be freed.
author Mikael Berthe <mikael@lilotux.net>
date Fri, 27 Apr 2007 22:31:30 +0200
parents 53c0c5be43fa
children 2de8f8ba1f34
comparison
equal deleted inserted replaced
1197:6f602d3270a4 1198:3a2ac3d96eed
1255 xmlnode xmldata) 1255 xmlnode xmldata)
1256 { 1256 {
1257 xmlnode x; 1257 xmlnode x;
1258 x = jutil_iqresult(xmldata); 1258 x = jutil_iqresult(xmldata);
1259 jab_send(jc, x); 1259 jab_send(jc, x);
1260 xmlnode_free(x);
1261 } 1260 }
1262 1261
1263 static void handle_iq_version(jconn conn, char *from, const char *id, 1262 static void handle_iq_version(jconn conn, char *from, const char *id,
1264 xmlnode xmldata) 1263 xmlnode xmldata)
1265 { 1264 {