summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <robert.mcqueen@collabora.co.uk>2006-07-10 12:25:50 +0000
committer <robert.mcqueen@collabora.co.uk>2006-07-10 12:25:50 +0000
commitd0870f29d1a0205c048d079e7ef73b80863f5c3b (patch)
tree09459cd2acffa76b66b713968e8ed721cb0d3967
parent91b9aff4aadbfd0e1d357a9b8783bae79e987a95 (diff)
fix possible NULL-strcmp in roster IQ callback
-rw-r--r--src/roster.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/roster.c b/src/roster.c
index 7e3e26491..e37dbbc6d 100644
--- a/src/roster.c
+++ b/src/roster.c
@@ -613,8 +613,7 @@ gabble_roster_iq_cb (LmMessageHandler *handler,
iq_node = lm_message_get_node (message);
query_node = lm_message_node_get_child (iq_node, "query");
- if (!query_node || strcmp (NS_ROSTER,
- lm_message_node_get_attribute (query_node, "xmlns")))
+ if (!query_node || !_lm_message_node_has_namespace (query_node, NS_ROSTER))
return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
from = lm_message_node_get_attribute (message->node, "from");