From 308d531a8cb08779f8867de8718dffaf3116ec3e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 7 Oct 2012 15:26:36 +0200 Subject: Fix uninitialized pointer read in ssh_host_pubkeys_update_known_hosts --- src/responder/ssh/sshsrv_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/responder/ssh') 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; -- cgit