From 6ccb21827b037216eff22970083bae7e487ad355 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 3 Aug 2021 21:10:42 +0100 Subject: [PATCH] gss-token: initialise input buffer to empty --- lib/gssapi/gss-token.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gssapi/gss-token.c b/lib/gssapi/gss-token.c index c59b29279..bee4f948c 100644 --- a/lib/gssapi/gss-token.c +++ b/lib/gssapi/gss-token.c @@ -263,6 +263,7 @@ read_token(gss_buffer_t in, int negotiate) /* We must flush before we block wanting input */ fflush(stdout); + *in = (gss_buffer_desc)GSS_C_EMPTY_BUFFER; inbuf = read_buffer(stdin); if (!inbuf) /* Just a couple of \n's in a row or EOF, no error. */