authd: always use an empty buffer to read ident reply
Otherwise we could read uninitialised data beyond the actual reply
This commit is contained in:
parent
15b05f95f0
commit
244f6259de
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ static void
|
||||||
read_ident_reply(rb_fde_t *F, void *data)
|
read_ident_reply(rb_fde_t *F, void *data)
|
||||||
{
|
{
|
||||||
struct auth_client *auth = data;
|
struct auth_client *auth = data;
|
||||||
char buf[IDENT_BUFSIZE + 1]; /* buffer to read auth reply into */
|
char buf[IDENT_BUFSIZE + 1] = { 0 }; /* buffer to read auth reply into */
|
||||||
ident_message message = REPORT_FAIL;
|
ident_message message = REPORT_FAIL;
|
||||||
char *s = NULL;
|
char *s = NULL;
|
||||||
char *t = NULL;
|
char *t = NULL;
|
||||||
|
|
Loading…
Reference in a new issue