mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
- djm@cvs.openbsd.org 2013/12/07 00:19:15
[key.c] set k->cert = NULL after freeing it
This commit is contained in:
parent
3cccc0e155
commit
ca570a519c
@ -30,6 +30,9 @@
|
|||||||
- jmc@cvs.openbsd.org 2013/12/06 15:29:07
|
- jmc@cvs.openbsd.org 2013/12/06 15:29:07
|
||||||
[sshd.8]
|
[sshd.8]
|
||||||
missing comma;
|
missing comma;
|
||||||
|
- djm@cvs.openbsd.org 2013/12/07 00:19:15
|
||||||
|
[key.c]
|
||||||
|
set k->cert = NULL after freeing it
|
||||||
- [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
|
- [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
|
||||||
[ge25519_base.data hash.c sc25519.c sc25519.h verify.c] Fix RCS idents
|
[ge25519_base.data hash.c sc25519.c sc25519.h verify.c] Fix RCS idents
|
||||||
|
|
||||||
|
3
key.c
3
key.c
@ -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():
|
* read_bignum():
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -1955,6 +1955,7 @@ key_drop_cert(Key *k)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
cert_free(k->cert);
|
cert_free(k->cert);
|
||||||
|
k->cert = NULL;
|
||||||
k->type = key_type_plain(k->type);
|
k->type = key_type_plain(k->type);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user