mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix assertion failure on ssh.com export of ECDSA.
It's a key type that format doesn't know how to handle, but that's no excuse to fail an assertion - we have a perfectly good failure code we can return from the export function, so we should use it.
This commit is contained in:
parent
869a0f5f71
commit
405800290d
3
import.c
3
import.c
@ -2265,8 +2265,7 @@ int sshcom_write(const Filename *filename, struct ssh2_userkey *key,
|
|||||||
initial_zero = 1;
|
initial_zero = 1;
|
||||||
type = "dl-modp{sign{dsa-nist-sha1},dh{plain}}";
|
type = "dl-modp{sign{dsa-nist-sha1},dh{plain}}";
|
||||||
} else {
|
} else {
|
||||||
assert(0); /* zoinks! */
|
goto error; /* unsupported key type */
|
||||||
exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
outblob = strbuf_new();
|
outblob = strbuf_new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user