summaryrefslogtreecommitdiffstats
path: root/g10/kbnode.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-13 21:58:50 +0100
committerWerner Koch <wk@gnupg.org>1998-02-13 21:58:50 +0100
commitf477447d9af4097e8c5d4c15a3dd381237e93ee2 (patch)
treea655392c92fed02f06ebf503bf10b835b56e54e0 /g10/kbnode.c
parentadded assembler stuff for hppa (diff)
downloadgnupg2-f477447d9af4097e8c5d4c15a3dd381237e93ee2.tar.xz
gnupg2-f477447d9af4097e8c5d4c15a3dd381237e93ee2.zip
added option exportV0-2-6
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r--g10/kbnode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index dd4f0ce24..83ec50742 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -177,11 +177,12 @@ walk_kbnode( KBNODE root, KBNODE *context, int all )
do {
if( !*context ) {
*context = root;
- return root;
+ n = root;
+ }
+ else {
+ n = (*context)->next;
+ *context = n;
}
-
- n = (*context)->next;
- *context = n;
} while( !all && n && (n->private_flag & 1) );
return n;