gss-token: initialise input buffer to empty

This commit is contained in:
Roland C. Dowdeswell
2021-08-03 21:10:42 +01:00
committed by Luke Howard
parent 0cb54fa69e
commit 6ccb21827b

View File

@@ -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. */