Explorar o código

rls: proper header define guard and check of null returned value

Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
4f2da3e025
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      modules/rls/notify.c
  2. 1 1
      modules/rls/utils.h

+ 1 - 1
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;

+ 1 - 1
modules/rls/utils.h

@@ -21,7 +21,7 @@
  *
  */
 
-#ifndef RLS_URILS_H
+#ifndef RLS_UTILS_H
 #define RLS_UTILS_H
 
 #include "../../ut.h"