xmlns sanity check

This commit is contained in:
Olof hagsand 2018-06-05 16:43:43 +02:00
parent 849e46191e
commit 0ad6703663
4 changed files with 23 additions and 8 deletions

View file

@ -253,9 +253,12 @@ xml_namespace_check(cxobj *xn,
return 0;
xn = xp;
}
#ifdef XMLNS_YANG_ONLY
if (ys == NULL)
return 0; /* If no yang spec */
else{
else
#endif
{
/* Check if my namespace */
if ((n = yang_find_myprefix(ys)) != NULL && strcmp(nsn,n)==0)
return 0;