diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-07 15:26:36 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-09 19:30:56 +0200 |
commit | 308d531a8cb08779f8867de8718dffaf3116ec3e (patch) | |
tree | 4fb7de907d1884c8c3c0068174fd35eb30523f0d /src/responder/ssh | |
parent | a87ffe4ae575369981df90de109ca339bed8787a (diff) | |
download | sssd-308d531a8cb08779f8867de8718dffaf3116ec3e.tar.gz sssd-308d531a8cb08779f8867de8718dffaf3116ec3e.tar.bz2 sssd-308d531a8cb08779f8867de8718dffaf3116ec3e.zip |
Fix uninitialized pointer read in ssh_host_pubkeys_update_known_hosts
Diffstat (limited to 'src/responder/ssh')
-rw-r--r-- | src/responder/ssh/sshsrv_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responder/ssh/sshsrv_cmd.c b/src/responder/ssh/sshsrv_cmd.c index ec988f09..7de523fa 100644 --- a/src/responder/ssh/sshsrv_cmd.c +++ b/src/responder/ssh/sshsrv_cmd.c @@ -559,7 +559,8 @@ ssh_host_pubkeys_update_known_hosts(struct ssh_cmd_ctx *cmd_ctx) size_t num_hosts, i; struct sss_ssh_ent *ent; int fd = -1; - char *filename, *entstr; + char *filename = NULL; + char *entstr; ssize_t wret; mode_t old_mask; |