Skip to content

Commit

Permalink
Fix auth_flavors unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jul 20, 2012
1 parent b699f35 commit 7ca3ba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nfspy/mountclient.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def unpack_fhstatus(self):
if status == 0: if status == 0:
fh = self.unpack_fhandle() fh = self.unpack_fhandle()
#Not sure how to use this: #Not sure how to use this:
auth_flavors = self.unpack_uint() num_flavors = self.unpack_uint()
auth_flavors = []
for n in xrange(num_flavors):
auth_flavors.append(self.unpack_uint())
else: else:
fh = None fh = None
return status, fh, auth_flavors return status, fh, auth_flavors
Expand Down

0 comments on commit 7ca3ba5

Please sign in to comment.