1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-05 01:02:39 +03:00

gssapi: Make sure buffer is initialized

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-10-31 11:42:17 +01:00
parent af2aeba838
commit da81b99df1

View File

@@ -718,7 +718,7 @@ int ssh_gssapi_auth_mic(ssh_session session){
int rc; int rc;
size_t n_oids = 0; size_t n_oids = 0;
OM_uint32 maj_stat, min_stat; OM_uint32 maj_stat, min_stat;
char name_buf[256]; char name_buf[256] = {0};
gss_buffer_desc hostname; gss_buffer_desc hostname;
const char *gss_host = session->opts.host; const char *gss_host = session->opts.host;