diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-08-13 02:41:05 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-08-13 12:42:13 +1000 |
commit | c3903c38b0fd168ab3d925c2b129d1a599593426 (patch) | |
tree | a0914654d1d42e32084afe2d34144c0fadc2735d /compat.h | |
parent | 1b9dd4aa15208100fbc3650f33ea052255578282 (diff) |
upstream: revert compat.[ch] section of the following change. It
causes double-free under some circumstances.
--
date: 2018/07/31 03:07:24; author: djm; state: Exp; lines: +33 -18; commitid: f7g4UI8eeOXReTPh;
fix some memory leaks spotted by Coverity via Jakub Jelen in bz#2366
feedback and ok dtucker@
OpenBSD-Commit-ID: 1e77547f60fdb5e2ffe23e2e4733c54d8d2d1137
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: compat.h,v 1.53 2018/07/31 03:07:24 djm Exp $ */ | 1 | /* $OpenBSD: compat.h,v 1.54 2018/08/13 02:41:05 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999, 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 1999, 2000, 2001 Markus Friedl. All rights reserved. |
@@ -65,15 +65,9 @@ | |||
65 | 65 | ||
66 | u_int compat_datafellows(const char *); | 66 | u_int compat_datafellows(const char *); |
67 | int proto_spec(const char *); | 67 | int proto_spec(const char *); |
68 | 68 | char *compat_cipher_proposal(char *); | |
69 | /* | 69 | char *compat_pkalg_proposal(char *); |
70 | * compat_*_proposal will update their respective proposals based on the | 70 | char *compat_kex_proposal(char *); |
71 | * active compat flags. The replacement is performed in-place - i.e. they | ||
72 | * will free their argument and return a new heap-allocated string. | ||
73 | */ | ||
74 | char *compat_cipher_proposal(char *, u_int compat); | ||
75 | char *compat_pkalg_proposal(char *, u_int compat); | ||
76 | char *compat_kex_proposal(char *, u_int compat); | ||
77 | 71 | ||
78 | extern int datafellows; | 72 | extern int datafellows; |
79 | #endif | 73 | #endif |