Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2018 15:25:15 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341470 - head/sbin/ggate/ggated
Message-ID:  <201812041525.wB4FPFgP084305@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Dec  4 15:25:15 2018
New Revision: 341470
URL: https://svnweb.freebsd.org/changeset/base/341470

Log:
  ggated: do not expose stack data in sendfail()
  
  admbugs:	590
  Submitted by:	Fabian Keil <fk@fabiankeil.de>
  Obtained from:	ElectroBSD

Modified:
  head/sbin/ggate/ggated/ggated.c

Modified: head/sbin/ggate/ggated/ggated.c
==============================================================================
--- head/sbin/ggate/ggated/ggated.c	Tue Dec  4 15:12:28 2018	(r341469)
+++ head/sbin/ggate/ggated/ggated.c	Tue Dec  4 15:25:15 2018	(r341470)
@@ -591,6 +591,7 @@ sendfail(int sfd, int error, const char *fmt, ...)
 	va_list ap;
 	ssize_t data;
 
+	memset(&sinit, 0, sizeof(sinit));
 	sinit.gs_error = error;
 	g_gate_swap2n_sinit(&sinit);
 	data = g_gate_send(sfd, &sinit, sizeof(sinit), 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812041525.wB4FPFgP084305>