Changeset 649

Show
Ignore:
Timestamp:
10/12/05 21:38:36 (3 years ago)
Author:
jajcus
Message:

- ACL fix (rules with no 'what' attribute were ignored)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/acl.c

    r630 r649  
    9696                        if (fnmatch(acl_e->who,jid,0)) continue; /* no match */ 
    9797                } 
    98                 if (acl_e && !xmlnode_get_tag(x,acl_e->what)) continue; /* no match */ 
     98                if (acl_e && acl_e->what && !xmlnode_get_tag(x,acl_e->what)) continue; /* no match */ 
    9999                result=acl_e->allow; 
    100100                break;