diff options
author | Werner Koch <wk@gnupg.org> | 1998-07-29 21:35:05 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-07-29 21:35:05 +0200 |
commit | 5ae562b41d9e3ec965643b902bf8593c8ca5a2d7 (patch) | |
tree | 059ed09c380b3f534479add19933dbe9a7a401c9 /g10/kbnode.c | |
parent | changed trustdb design (diff) | |
download | gnupg2-5ae562b41d9e3ec965643b902bf8593c8ca5a2d7.tar.xz gnupg2-5ae562b41d9e3ec965643b902bf8593c8ca5a2d7.zip |
edit-key is now complete
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r-- | g10/kbnode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c index 4578f8271..428768105 100644 --- a/g10/kbnode.c +++ b/g10/kbnode.c @@ -94,7 +94,8 @@ add_kbnode( KBNODE root, KBNODE node ) } /**************** - * Insert NODE into the list after root but before a packet with type PKTTYPE + * Insert NODE into the list after root but before a packet which is not of + * type PKTTYPE * (only if PKTTYPE != 0) */ void @@ -108,7 +109,7 @@ insert_kbnode( KBNODE root, KBNODE node, int pkttype ) KBNODE n1; for(n1=root; n1->next; n1 = n1->next) - if( pkttype == n1->next->pkt->pkttype ) { + if( pkttype != n1->next->pkt->pkttype ) { node->next = n1->next; n1->next = node; return; |