diff options
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 542676ccd..1f19b05de 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -633,7 +633,8 @@ dump_sig_subpkt( int hashed, int type, int critical, printf("sig expires %s", strtimestamp( buffer_to_u32(buffer) ) ); break; case SIGSUBPKT_EXPORTABLE: - p = "exportable"; + if( length ) + printf("%sexportable", *buffer? "":"not "); break; case SIGSUBPKT_TRUST: p = "trust signature"; @@ -759,6 +760,10 @@ parse_sig_subpkt( const byte *buffer, sigsubpkttype_t reqtype, size_t *ret_n ) if( n < 4 ) break; return buffer; + case SIGSUBPKT_EXPORTABLE: + if( !n ) + break; + return buffer; case SIGSUBPKT_ISSUER:/* issuer key ID */ if( n < 8 ) break; |