1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

Fixed segv

This commit is contained in:
Werner Koch 2006-04-08 01:23:23 +00:00
parent e5a03c84f7
commit 4fdc6387c3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-04-08 Werner Koch <wk@g10code.com>
* mainproc.c (list_node): Print ring trust value only if not empty
and --with-colons has been given.
2006-04-05 Werner Koch <wk@g10code.com> 2006-04-05 Werner Koch <wk@g10code.com>
* getkey.c (user_id_not_found_utf8): New. * getkey.c (user_id_not_found_utf8): New.

View File

@ -937,10 +937,12 @@ list_node( CTX c, KBNODE node )
putchar('\n'); putchar('\n');
if( opt.fingerprint && !any ) if( opt.fingerprint && !any )
print_fingerprint( pk, NULL, 0 ); print_fingerprint( pk, NULL, 0 );
if( node->next if( opt.with_colons
&& node->next
&& node->next->pkt->pkttype == PKT_RING_TRUST ) { && node->next->pkt->pkttype == PKT_RING_TRUST ) {
printf("rtv:2:%u:\n", printf("rtv:2:%u:\n",
node->next->pkt->pkt.ring_trust->trustval ); node->next->pkt->pkt.ring_trust?
node->next->pkt->pkt.ring_trust->trustval : 0);
} }
any=1; any=1;
} }