diff options
author | 2000-05-05 18:53:42 +0000 | |
---|---|---|
committer | 2000-05-05 18:53:42 +0000 | |
commit | 7add2f408fdfd3e63b267e24a4ba6c193b63e7e2 (patch) | |
tree | d462e73908c77abefca35a79e8c937c4f45e6322 /usr.bin/ssh/key.c | |
parent | log failure before sending the reply (diff) | |
download | wireguard-openbsd-7add2f408fdfd3e63b267e24a4ba6c193b63e7e2.tar.xz wireguard-openbsd-7add2f408fdfd3e63b267e24a4ba6c193b63e7e2.zip |
remote trailing comments before calling __b64_pton
Diffstat (limited to 'usr.bin/ssh/key.c')
-rw-r--r-- | usr.bin/ssh/key.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c index 572317a6416..ae355a3fcdc 100644 --- a/usr.bin/ssh/key.c +++ b/usr.bin/ssh/key.c @@ -255,6 +255,10 @@ key_read(Key *ret, char **cpp) len = 2*strlen(cp); blob = xmalloc(len); n = uudecode(cp, blob, len); + if (n < 0) { + error("uudecode %s failed", cp); + return 0; + } k = dsa_key_from_blob(blob, n); if (k == NULL) return 0; |