Skip to content

Commit

Permalink
fix context refreshing sending the query message in an encrypted packet
Browse files Browse the repository at this point in the history
  • Loading branch information
afflux committed Apr 16, 2012
1 parent 6a86f9c commit c21901c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/potr/context.py
Expand Up @@ -250,7 +250,7 @@ def sendMessage(self, sendPolicy, msg, flags=0, tlvs=[], appdata=None):

def processOutgoingMessage(self, msg, flags, tlvs=[]):
if isinstance(self.parse(msg), proto.Query):
msg = self.user.getDefaultQueryMessage(self.getPolicy)
return self.user.getDefaultQueryMessage(self.getPolicy)

if self.state == STATE_PLAINTEXT:
if self.getPolicy('REQUIRE_ENCRYPTION'):
Expand Down

0 comments on commit c21901c

Please sign in to comment.