From: Jonathan McDowell <noodles@earth.li>
Date: Sat, 26 Dec 2009 12:18:13 +0000 (+0000)
Subject: Fix PostgreSQL backend key iteration
X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/0fdd7e71c2d05b84db19a30df8cf5d5ca1412ca4?ds=sidebyside

Fix PostgreSQL backend key iteration

  We weren't passing the correct pointer into the parse_keys function
  when parsing the packets we'd read.
---

diff --git a/keydb_pg.c b/keydb_pg.c
index 812e5d7..85ea500 100644
--- a/keydb_pg.c
+++ b/keydb_pg.c
@@ -608,7 +608,7 @@ static int pg_iterate_keys(void (*iterfunc)(void *ctx,
 			} else {
 				read_openpgp_stream(keydb_fetchchar, &fd,
 						&packets, 0);
-				parse_keys(packets, key);
+				parse_keys(packets, &key);
 				lo_close(dbconn, fd);
 
 				iterfunc(ctx, key);