diff options
author | Damien Miller <djm@mindrot.org> | 2013-12-07 01:29:09 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-12-07 01:29:09 +0100 |
commit | ca570a519cb846da61d002c7f46fa92e39c83e45 (patch) | |
tree | 17d249a3ac08328caf2c743e440612249300bfd6 /key.c | |
parent | - [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h] (diff) | |
download | openssh-ca570a519cb846da61d002c7f46fa92e39c83e45.tar.xz openssh-ca570a519cb846da61d002c7f46fa92e39c83e45.zip |
- djm@cvs.openbsd.org 2013/12/07 00:19:15
[key.c]
set k->cert = NULL after freeing it
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.108 2013/12/06 13:34:54 markus Exp $ */ +/* $OpenBSD: key.c,v 1.110 2013/12/07 00:19:15 djm Exp $ */ /* * read_bignum(): * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1955,6 +1955,7 @@ key_drop_cert(Key *k) return -1; } cert_free(k->cert); + k->cert = NULL; k->type = key_type_plain(k->type); return 0; } |