Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
ed09a268
Commit
ed09a268
authored
Sep 16, 2003
by
Pontus Freyhult
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/lsh-writekey.c (main): Check that the given key isn't empty.
Rev: src/lsh-writekey.c:1.33
parent
8ad727f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/lsh-writekey.c
src/lsh-writekey.c
+7
-1
No files found.
src/lsh-writekey.c
View file @
ed09a268
...
...
@@ -406,7 +406,7 @@ main(int argc, char **argv)
struct
lsh_string
*
input
;
struct
lsh_string
*
output
;
const
struct
exception
*
e
;
argp_parse
(
&
main_argp
,
argc
,
argv
,
0
,
NULL
,
options
);
if
(
!
(
check_file
(
options
->
private_file
)
...
...
@@ -421,6 +421,12 @@ main(int argc, char **argv)
return
EXIT_FAILURE
;
}
if
(
!
input
->
length
)
{
werror
(
"Empty key on input, giving up.
\n
"
);
return
EXIT_FAILURE
;
}
output
=
process_private
(
input
,
options
);
if
(
!
output
)
return
EXIT_FAILURE
;
...
...
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