small bug regarding filler bytes

git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@149 f711b948-2313-0410-aaa9-d29f33439f0b
This commit is contained in:
hploetz 2006-11-26 05:16:23 +00:00
parent 98034cf1f7
commit 68b5e8673a
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class TCOS_Security_Environment(object):
value_ = TLV_utils.pack( (data, ), recalculate_length=True )
block.append( value_ )
elif tag in (0xff, 0x00):
elif tag in (0xff, 0x00) and len(block) > 0:
block.append( chr(tag) )
else:
if len(block) > 0: