artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
080b67b
)
fix a memory leak if tls_read() fails. ok henning@
author
jsg
<jsg@openbsd.org>
Tue, 21 Apr 2015 01:49:19 +0000
(
01:49
+0000)
committer
jsg
<jsg@openbsd.org>
Tue, 21 Apr 2015 01:49:19 +0000
(
01:49
+0000)
usr.sbin/ntpd/constraint.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ntpd/constraint.c
b/usr.sbin/ntpd/constraint.c
index
3e41c3e
..
2474871
100644
(file)
--- a/
usr.sbin/ntpd/constraint.c
+++ b/
usr.sbin/ntpd/constraint.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: constraint.c,v 1.
7 2015/03/14 05:10:11 bcook Exp $
*/
+/* $OpenBSD: constraint.c,v 1.
8 2015/04/21 01:49:19 jsg Exp $
*/
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@
-740,6
+740,7
@@
tls_readline(struct tls *tls, size_t *lenp, size_t *maxlength,
goto again;
if (ret != 0) {
/* SSL read error, ignore */
+ free(buf);
return (NULL);
}