don't take into account keyid in error presence: it's our own signed message

This commit is contained in:
Yann Leboulanger 2008-08-11 15:30:24 +00:00
parent d5fc1841a8
commit 7f908667a4
1 changed files with 2 additions and 1 deletions

View File

@ -1974,7 +1974,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
except:
prio = 0
keyID = ''
if sigTag and self.USE_GPG:
if sigTag and self.USE_GPG and ptype != 'error':
# error presences contain our own signature
# verify
sigmsg = sigTag.getData()
keyID = self.gpg.verify(status, sigmsg)