summaryrefslogtreecommitdiffstats
path: root/src/responder/ssh
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-07 15:26:36 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-09 19:30:56 +0200
commit308d531a8cb08779f8867de8718dffaf3116ec3e (patch)
tree4fb7de907d1884c8c3c0068174fd35eb30523f0d /src/responder/ssh
parenta87ffe4ae575369981df90de109ca339bed8787a (diff)
downloadsssd-308d531a8cb08779f8867de8718dffaf3116ec3e.tar.gz
sssd-308d531a8cb08779f8867de8718dffaf3116ec3e.tar.xz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responder/ssh/sshsrv_cmd.c b/src/responder/ssh/sshsrv_cmd.c
index ec988f09a..7de523fad 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;