projects
/
cascardo
/
chat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If IQ does not have a namespace, ignore it
[cascardo/chat.git]
/
hook.c
diff --git
a/hook.c
b/hook.c
index
41ef3c5
..
7b95869
100644
(file)
--- a/
hook.c
+++ b/
hook.c
@@
-66,8
+66,8
@@
hc_xmpp_hook (void *data, int type, iks *stanza)
{
char *ns = iks_find_attrib (iks_child (stanza), "xmlns");
hc_xmpp_hook_t hook;
{
char *ns = iks_find_attrib (iks_child (stanza), "xmlns");
hc_xmpp_hook_t hook;
- if (g_hash_table_lookup_extended (xmpp->nshooks, ns,
- NULL, (gpointer *) &hook))
+ if (
ns != NULL &&
g_hash_table_lookup_extended (xmpp->nshooks, ns,
+
NULL, (gpointer *) &hook))
hook (xmpp, stanza);
}
else if (!iks_strcmp (iks_name (stanza), "stream:features"))
hook (xmpp, stanza);
}
else if (!iks_strcmp (iks_name (stanza), "stream:features"))