]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Fix PostgreSQL backend key iteration
authorJonathan McDowell <noodles@earth.li>
Sat, 26 Dec 2009 12:18:13 +0000 (12:18 +0000)
committerJonathan McDowell <noodles@earth.li>
Sat, 26 Dec 2009 12:18:13 +0000 (12:18 +0000)
  We weren't passing the correct pointer into the parse_keys function
  when parsing the packets we'd read.

keydb_pg.c

index 812e5d76b1aa079777ffa58a43b579c08a966070..85ea50060b5b12a58cad35badabb066d9d9043a8 100644 (file)
@@ -608,7 +608,7 @@ static int pg_iterate_keys(void (*iterfunc)(void *ctx,
                        } else {
                                read_openpgp_stream(keydb_fetchchar, &fd,
                                                &packets, 0);
                        } else {
                                read_openpgp_stream(keydb_fetchchar, &fd,
                                                &packets, 0);
-                               parse_keys(packets, key);
+                               parse_keys(packets, &key);
                                lo_close(dbconn, fd);
 
                                iterfunc(ctx, key);
                                lo_close(dbconn, fd);
 
                                iterfunc(ctx, key);