Browse Source

ggated: do not expose stack data in sendfail()

admbugs:	590
Submitted by:	Fabian Keil <fk@fabiankeil.de>
Obtained from:	ElectroBSD
tags/ggatessh-v1.0.0
emaste 6 years ago
parent
commit
11cb9bcea1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ggated/ggated.c

+ 1
- 0
ggated/ggated.c View File

@@ -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);


Loading…
Cancel
Save