Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
b618db52
Commit
b618db52
authored
Apr 15, 2003
by
Niels Möller
Browse files
(read_host_key): Fixed string leak.
Rev: src/server.c:1.73
parent
dfd4aba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
b618db52
...
...
@@ -195,12 +195,12 @@ read_host_key(const char *file,
int
algorithm_name
;
if
(
fd
<
0
)
if
(
fd
<
0
)
{
werror
(
"Failed to open `%z' for reading %e
\n
"
,
file
,
errno
);
return
0
;
}
contents
=
io_read_file_raw
(
fd
,
5000
);
if
(
!
contents
)
{
...
...
@@ -213,6 +213,8 @@ read_host_key(const char *file,
s
=
spki_make_signer
(
signature_algorithms
,
contents
,
&
algorithm_name
);
lsh_string_free
(
contents
);
if
(
!
s
)
{
werror
(
"Invalid host key
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment