diff options
author | Werner Koch <wk@gnupg.org> | 1998-01-24 17:32:27 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-01-24 17:32:27 +0100 |
commit | d71f8bce7e73b41c1d19d2dae6396ea8eace9c07 (patch) | |
tree | 89854e6434a270ad627f4f4011385a7739f8f3df /g10/build-packet.c | |
parent | backup (diff) | |
download | gnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.tar.xz gnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.zip |
Trust stuff works partly.
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r-- | g10/build-packet.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c index a541c8cae..b0fd0859a 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -147,9 +147,11 @@ calc_packet_length( PACKET *pkt ) static int do_comment( IOBUF out, int ctb, PKT_comment *rem ) { - write_header(out, ctb, rem->len); - if( iobuf_write( out, rem->data, rem->len ) ) - return G10ERR_WRITE_FILE; + if( !opt.no_comment ) { + write_header(out, ctb, rem->len); + if( iobuf_write( out, rem->data, rem->len ) ) + return G10ERR_WRITE_FILE; + } return 0; } |