fix bug in calls to attributes

This commit is contained in:
Dan Walsh 2013-10-09 16:59:13 -04:00 committed by Stephen Smalley
parent 6f84cfd00c
commit 3223746ba8

View file

@ -273,10 +273,10 @@ class InterfaceVector:
self.add_av(av)
# Add typeattribute access
if attributes != None:
if attributes:
for typeattribute in interface.typeattributes():
for attr in typeattribute.attributes:
if not attributes.attributes.has_key(attr):
if not attributes.has_key(attr):
# print "missing attribute " + attr
continue
attr_vec = attributes.attributes[attr]