[setup - the official Cygwin setup program] branch master, updated. release_2.902-1-g285a4617

jturney-9JcytcrH/[email protected]
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=285a4617516a471b68f894cab7a1364170173fd6

commit 285a4617516a471b68f894cab7a1364170173fd6
Author: Jon Turney <[email protected]>
Date:   Fri Feb 28 13:51:32 2020 +0000

    Fix build when CRYPTODEBUGGING is defined


Diff:
---
 crypto.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/crypto.cc b/crypto.cc
index 597a2a98..c4814b9e 100644
--- a/crypto.cc
+++ b/crypto.cc
@@ -227,9 +227,9 @@ pkt_cb_resp key_file_walker (struct packet_walker *wlk, unsigned char tag,
 #if CRYPTODEBUGGING
   // Debugging
   char sexprbuf[GPG_KEY_SEXPR_BUF_SIZE];
-  n = gcry_sexp_sprint (new_key, GCRYSEXP_FMT_ADVANCED, sexprbuf,
-                        GPG_KEY_SEXPR_BUF_SIZE);
-  LogBabblePrintf ("key:%d\n'%s'", n, sexprbuf);
+  erroff = gcry_sexp_sprint (new_key, GCRYSEXP_FMT_ADVANCED, sexprbuf,
+                             GPG_KEY_SEXPR_BUF_SIZE);
+  LogBabblePrintf ("key:%d\n'%s'", erroff, sexprbuf);
 #endif /* CRYPTODEBUGGING */
 
   // Return it to caller in the vector.
@@ -359,6 +359,7 @@ verify_sig(struct sig_data *sigdat, HWND owner)
         }
 
 #if CRYPTODEBUGGING
+      char sexprbuf[GPG_KEY_SEXPR_BUF_SIZE];
       n = gcry_sexp_sprint (sig, GCRYSEXP_FMT_ADVANCED, sexprbuf,
                             GPG_KEY_SEXPR_BUF_SIZE);
       LogBabblePrintf ("sig:%d\n'%s'", n, sexprbuf);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.