summaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-07-31 03:07:24 +0000
committerDamien Miller <djm@mindrot.org>2018-07-31 13:13:26 +1000
commit1a66079c0669813306cc69e5776a4acd9fb49015 (patch)
tree892eb2fcddac9189cc1d8e7a9b821bde27ba1014 /compat.h
parent87f08be054b7eeadbb9cdeb3fb4872be79ccf218 (diff)
upstream: fix some memory leaks spotted by Coverity via Jakub Jelen
in bz#2366 feedback and ok dtucker@ OpenBSD-Commit-ID: 8402bbae67d578bedbadb0ce68ff7c5a136ef563
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/compat.h b/compat.h
index 28d2c8135..e2877737b 100644
--- a/compat.h
+++ b/compat.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: compat.h,v 1.52 2018/07/03 11:39:54 djm Exp $ */ 1/* $OpenBSD: compat.h,v 1.53 2018/07/31 03:07:24 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,9 +65,15 @@
65 65
66u_int compat_datafellows(const char *); 66u_int compat_datafellows(const char *);
67int proto_spec(const char *); 67int proto_spec(const char *);
68char *compat_cipher_proposal(char *); 68
69char *compat_pkalg_proposal(char *); 69/*
70char *compat_kex_proposal(char *); 70 * compat_*_proposal will update their respective proposals based on the
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 */
74char *compat_cipher_proposal(char *, u_int compat);
75char *compat_pkalg_proposal(char *, u_int compat);
76char *compat_kex_proposal(char *, u_int compat);
71 77
72extern int datafellows; 78extern int datafellows;
73#endif 79#endif