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
03f04cd80e
commit
151c4614a0
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ read_auth_reply(rb_fde_t *F, void *data)
|
||||||
char *t = NULL;
|
char *t = NULL;
|
||||||
int len;
|
int len;
|
||||||
int count;
|
int count;
|
||||||
char buf[AUTH_BUFSIZ + 1]; /* buffer to read auth reply into */
|
char buf[AUTH_BUFSIZ + 1] = { 0 }; /* buffer to read auth reply into */
|
||||||
|
|
||||||
len = rb_read(F, buf, AUTH_BUFSIZ);
|
len = rb_read(F, buf, AUTH_BUFSIZ);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue