Skip to content
GitLab
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
534e74b2
Commit
534e74b2
authored
Oct 02, 2001
by
Niels Möller
Browse files
* src/lsh-decode-key.c (do_decode_key): Free CONTENTS properly.
Rev: src/lsh-decode-key.c:1.12
parent
631a2390
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsh-decode-key.c
View file @
534e74b2
...
...
@@ -164,10 +164,10 @@ do_decode_key(struct abstract_write *s,
EXCEPTION_RAISE
(
self
->
e
,
make_simple_exception
(
EXC_APP_BAD_KEY
,
"Invalid dsa key.
\n
"
));
return
;
}
else
COMMAND_RETURN
(
self
->
c
,
spki_make_public_key
(
v
));
COMMAND_RETURN
(
self
->
c
,
spki_make_public_key
(
v
));
break
;
}
case
ATOM_SSH_RSA
:
...
...
@@ -181,10 +181,10 @@ do_decode_key(struct abstract_write *s,
EXCEPTION_RAISE
(
self
->
e
,
make_simple_exception
(
EXC_APP_BAD_KEY
,
"Invalid rsa key.
\n
"
));
return
;
}
COMMAND_RETURN
(
self
->
c
,
spki_make_public_key
(
v
));
else
COMMAND_RETURN
(
self
->
c
,
spki_make_public_key
(
v
));
break
;
}
default:
...
...
@@ -192,8 +192,8 @@ do_decode_key(struct abstract_write *s,
make_simple_exception
(
EXC_APP_BAD_KEY
,
"Unknown key type."
));
}
}
lsh_string_free
(
contents
);
}
static
struct
abstract_write
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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