summaryrefslogtreecommitdiff
path: root/security/monkeysphere/files/patch-src_agent-transfer_main.c
blob: 00401b20ceee564f26550c0b077754e0c4cf6e43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/agent-transfer/main.c.orig	2022-02-28 17:21:23 UTC
+++ src/agent-transfer/main.c
@@ -385,7 +385,7 @@ size_t get_ssh_sz (gcry_mpi_t mpi) {
 int send_to_ssh_agent(struct exporter *e, int fd, unsigned int seconds, int confirm, const char *comment) {
   const char *key_type;
   int ret;
-  size_t len, mpilen;
+  size_t len=0, mpilen=0;
   off_t offset;
   unsigned char *msgbuf = NULL;
   uint32_t tmp;
@@ -450,7 +450,7 @@ int send_to_ssh_agent(struct exporter *e, int fd, unsi
     qdata = gcry_mpi_get_opaque (e->q, &qsz);
     ddata = gcry_mpi_get_opaque (e->d, &dsz);
     if (qsz != 33*8 || dsz != 32*8 || !qdata || !ddata) {
-      fprintf (stderr, "Ed25519 key did not have the expected components (q: %d %p, d: %d %p)\n",
+      fprintf (stderr, "Ed25519 key did not have the expected components (q: %d %s, d: %d %s)\n",
                qsz, qdata, dsz, ddata);
       return -1;
     }