summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/one_pass_sig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/one_pass_sig.rs')
-rw-r--r--openpgp/src/packet/one_pass_sig.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/one_pass_sig.rs b/openpgp/src/packet/one_pass_sig.rs
index a6861d6e..d0524c21 100644
--- a/openpgp/src/packet/one_pass_sig.rs
+++ b/openpgp/src/packet/one_pass_sig.rs
@@ -150,7 +150,7 @@ impl<'a> std::convert::TryFrom<&'a Signature> for OnePassSig3 {
type Error = anyhow::Error;
fn try_from(s: &'a Signature) -> Result<Self> {
- let issuer = match s.issuer() {
+ let issuer = match s.issuers().nth(0) {
Some(i) => i.clone(),
None =>
return Err(Error::InvalidArgument(