summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-24 17:32:27 +0100
committerWerner Koch <wk@gnupg.org>1998-01-24 17:32:27 +0100
commitd71f8bce7e73b41c1d19d2dae6396ea8eace9c07 (patch)
tree89854e6434a270ad627f4f4011385a7739f8f3df /g10/build-packet.c
parentbackup (diff)
downloadgnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.tar.xz
gnupg2-d71f8bce7e73b41c1d19d2dae6396ea8eace9c07.zip
Trust stuff works partly.
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c8
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;
}