diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-04-11 11:51:25 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-04-11 11:51:25 +0100 |
commit | d720a1487bb7b8588a7a830fecc490ca84bf528b (patch) | |
tree | 9ee0689b51a6042ba31934279d34d0eef5304e17 /compat/imsg.c | |
parent | 5f662d91db658abbcd46d7a678c0250754be35e3 (diff) | |
download | rtmux-d720a1487bb7b8588a7a830fecc490ca84bf528b.tar.gz rtmux-d720a1487bb7b8588a7a830fecc490ca84bf528b.tar.bz2 rtmux-d720a1487bb7b8588a7a830fecc490ca84bf528b.zip |
Update imsg*.c from OpenBSD.
Diffstat (limited to 'compat/imsg.c')
-rw-r--r-- | compat/imsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/imsg.c b/compat/imsg.c index 987284b3..85f13370 100644 --- a/compat/imsg.c +++ b/compat/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.14 2017/03/24 09:34:12 nicm Exp $ */ +/* $OpenBSD: imsg.c,v 1.15 2017/04/11 09:57:19 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -263,7 +263,7 @@ imsg_close(struct imsgbuf *ibuf, struct ibuf *msg) void imsg_free(struct imsg *imsg) { - free(imsg->data); + freezero(imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE); } int |