Skip to content

Commit

Permalink
HBSD MFC r341470: ggated: do not expose stack data in sendfail()
Browse files Browse the repository at this point in the history
admbugs:	590
Submitted by:	Fabian Keil <[email protected]>
Obtained from:	ElectroBSD

(cherry picked from commit f65517717d8e5b00841b797c0c14ed63e2ff009f)

Author: emaste <[email protected]>
Original-commit-date: Tue Dec 4 15:25:15 2018 +0000
svn-commit-id: /head/ r341470
Signed-off-by: Oliver Pinter <[email protected]>
  • Loading branch information
opntr committed Dec 4, 2018
1 parent 2b1a230 commit 370912d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbin/ggate/ggated/ggated.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 370912d

Please sign in to comment.