Module: sip-router
Branch: master
Commit: 4f2da3e025fa281f88e80bb841a51d6546219ae8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4f2da3e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed May 14 23:12:33 2014 +0200
rls: proper header define guard and check of null returned value
---
modules/rls/notify.c | 2 +-
modules/rls/utils.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rls/notify.c b/modules/rls/notify.c
index 782a041..88ad158 100644
--- a/modules/rls/notify.c
+++ b/modules/rls/notify.c
@@ -1366,7 +1366,7 @@ int rls_get_resource_list(str *rl_uri, str *username, str *domain,
{
/* No path specified - use all resource-lists. */
*rl_node = XMLDocGetNodeByName(*xmldoc,"resource-lists", NULL);
- if(rl_node==NULL)
+ if(*rl_node==NULL)
{
LM_ERR("no resource-lists node in XML document\n");
goto error;
diff --git a/modules/rls/utils.h b/modules/rls/utils.h
index 4b245e7..7918a9d 100644
--- a/modules/rls/utils.h
+++ b/modules/rls/utils.h
@@ -21,7 +21,7 @@
*
*/
-#ifndef RLS_URILS_H
+#ifndef RLS_UTILS_H
#define RLS_UTILS_H
#include "../../ut.h"