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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user