mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
And yet one more
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3649,7 +3649,7 @@ static int aji_delete_node_list(void *data, ikspak* pak)
|
||||
{
|
||||
|
||||
struct aji_client *client = ASTOBJ_REF((struct aji_client *) data);
|
||||
iks *item;
|
||||
iks *item = NULL;
|
||||
if (iks_has_children(pak->query)) {
|
||||
item = iks_first_tag(pak->query);
|
||||
ast_log(LOG_WARNING, "Connection: %s Node name: %s\n", client->jid->partial,
|
||||
@@ -3658,7 +3658,9 @@ static int aji_delete_node_list(void *data, ikspak* pak)
|
||||
aji_delete_pubsub_node(client, iks_find_attrib(item, "node"));
|
||||
}
|
||||
}
|
||||
iks_delete(item);
|
||||
if (item) {
|
||||
iks_delete(item);
|
||||
}
|
||||
return IKS_FILTER_EAT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user