diff options
author | markus@openbsd.org <markus@openbsd.org> | 2017-05-31 08:09:45 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-06-01 14:54:46 +1000 |
commit | 1e0cdf8efb745d0d1116e1aa22bdc99ee731695e (patch) | |
tree | 49ffdf3ef98eecd4141610e535f35bab5eea4603 /session.c | |
parent | 92e9fe633130376a95dd533df6e5e6a578c1e6b8 (diff) |
upstream commit
clear session keys from memory; ok djm@
Upstream-ID: ecd178819868975affd5fd6637458b7c712b6a0f
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.286 2016/11/30 03:00:05 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.287 2017/05/31 08:09:45 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -1486,6 +1486,7 @@ do_child(Session *s, const char *command) | |||
1486 | 1486 | ||
1487 | /* remove hostkey from the child's memory */ | 1487 | /* remove hostkey from the child's memory */ |
1488 | destroy_sensitive_data(); | 1488 | destroy_sensitive_data(); |
1489 | packet_clear_keys(); | ||
1489 | 1490 | ||
1490 | /* Force a password change */ | 1491 | /* Force a password change */ |
1491 | if (s->authctxt->force_pwchange) { | 1492 | if (s->authctxt->force_pwchange) { |