diff options
author | djm <djm> | 2014-04-20 03:00:11 +0000 |
---|---|---|
committer | djm <djm> | 2014-04-20 03:00:11 +0000 |
commit | 98fbdb8cdc87c0816cde6b454e415ad04ba82714 (patch) | |
tree | 7dd6f3b401f3c64c0a424d671e5179f51423eddf /ssh-keygen.c | |
parent | dbd2c18856e9df8c22054d7ea3241e8ab2f2c612 (diff) | |
download | openssh-98fbdb8cdc87c0816cde6b454e415ad04ba82714.tar.gz |
- 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 2a316bce..64d1a5f3 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.241 2014/02/05 20:13:25 naddy Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.242 2014/03/12 04:50:32 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * 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) Buffer b; Key *key = NULL; char *type, *cipher; - u_char *sig, data[] = "abcde12345"; + u_char *sig = NULL, data[] = "abcde12345"; int magic, rlen, ktype, i1, i2, i3, i4; u_int slen; u_long e; |