projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IPv4 numeric addresses were broken thanks to IPv6 patch
[u/mdw/putty]
/
sshpubk.c
diff --git
a/sshpubk.c
b/sshpubk.c
index
fddcf95
..
377be3a
100644
(file)
--- a/
sshpubk.c
+++ b/
sshpubk.c
@@
-77,7
+77,7
@@
static int loadrsakey_main(FILE *fp, struct RSAKey *key, struct RSAAux *aux,
j = GET_32BIT(buf+i);
i += 4;
if (len-i < j) goto end;
j = GET_32BIT(buf+i);
i += 4;
if (len-i < j) goto end;
- comment = malloc(j+1);
+ comment =
s
malloc(j+1);
if (comment) {
memcpy(comment, buf+i, j);
comment[j] = '\0';
if (comment) {
memcpy(comment, buf+i, j);
comment[j] = '\0';
@@
-189,7
+189,7
@@
int saversakey(char *filename, struct RSAKey *key, struct RSAAux *aux,
unsigned char buf[16384];
unsigned char keybuf[16];
struct MD5Context md5c;
unsigned char buf[16384];
unsigned char keybuf[16];
struct MD5Context md5c;
- char *p, *estart;
+
unsigned
char *p, *estart;
FILE *fp;
/*
FILE *fp;
/*