From 53bfe9d93deaae87df9ffc785027a928fe0e5e89 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Fri, 16 May 2008 20:26:28 +0100 Subject: [PATCH] Fix lookup display for more than one photo id. We would always show the first photo ID on a key when displaying it in /pks/lookup. Fix this so we show them all correctly. Patch from Philippe Teuwen as reporting in Debian bug #467020 --- lookup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lookup.c b/lookup.c index 3431690..a7d9c7c 100644 --- a/lookup.c +++ b/lookup.c @@ -207,7 +207,8 @@ int main(int argc, char *argv[]) unsigned char *photo = NULL; size_t length = 0; - if (getphoto(publickey, 0, &photo, &length)) { + if (getphoto(publickey, indx, &photo, + &length)) { fwrite(photo, 1, length, -- 2.39.5