diff options
author | Damien Miller <djm@mindrot.org> | 2014-04-20 13:00:11 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-04-20 13:00:11 +1000 |
commit | 8f9cd709c7cf0655d414306a0ed28306b33802be (patch) | |
tree | 8063cc3dc3435ebc4356a509603f51a3bd8acf12 /ssh-keygen.c | |
parent | 1c7ef4be83f6dec84509a312518b9df00ab491d9 (diff) |
- djm@cvs.openbsd.org 2014/03/12 04:50:32
[auth-bsdauth.c ssh-keygen.c]
don't count on things that accept arguments by reference to clear
things for us on error; most things do, but it's unsafe form.
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 2a316bcea..64d1a5f3c 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.241 2014/02/05 20:13:25 naddy Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.242 2014/03/12 04:50:32 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -408,7 +408,7 @@ do_convert_private_ssh2_from_blob(u_char *blob, u_int blen) | |||
408 | Buffer b; | 408 | Buffer b; |
409 | Key *key = NULL; | 409 | Key *key = NULL; |
410 | char *type, *cipher; | 410 | char *type, *cipher; |
411 | u_char *sig, data[] = "abcde12345"; | 411 | u_char *sig = NULL, data[] = "abcde12345"; |
412 | int magic, rlen, ktype, i1, i2, i3, i4; | 412 | int magic, rlen, ktype, i1, i2, i3, i4; |
413 | u_int slen; | 413 | u_int slen; |
414 | u_long e; | 414 | u_long e; |