From 244f6259de76559e20b04d0051e451fbc18e9aa8 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 12 Aug 2018 18:45:05 +0100 Subject: [PATCH] authd: always use an empty buffer to read ident reply Otherwise we could read uninitialised data beyond the actual reply --- authd/providers/ident.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authd/providers/ident.c b/authd/providers/ident.c index 53f1122b..8221a502 100644 --- a/authd/providers/ident.c +++ b/authd/providers/ident.c @@ -119,7 +119,7 @@ static void read_ident_reply(rb_fde_t *F, void *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; char *s = NULL; char *t = NULL;