Skip to content
Snippets Groups Projects
Commit 27a04d96 authored by Simon Tatham's avatar Simon Tatham
Browse files

cmdgen: add missing null pointer check in --dump mode.

A user pointed out that once we've identified the key algorithm from
an apparent public-key blob, we call ssh_key_new_pub on the blob data
and assume it will succeed. But there are plenty of ways it could
still fail, and ssh_key_new_pub could return NULL.

(cherry picked from commit 0c21eb44)
parent 11b89407
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment