aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-08 19:58:52 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-09 11:09:34 +0200
commit3e93836e8b19fe9adf444961dafbda98fabdee44 (patch)
treeb386cc6f722e44a764daef147bb503212b851aad
parent21db70888a5835c2ec82528ea7ba85dc446bd97d (diff)
downloadlibssh-3e93836e8b19fe9adf444961dafbda98fabdee44.tar.gz
libssh-3e93836e8b19fe9adf444961dafbda98fabdee44.tar.xz
libssh-3e93836e8b19fe9adf444961dafbda98fabdee44.zip
pki: Make error handling code reachable again.
Found by Coverity.
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index 03af5b6e..db9b84e8 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -562,7 +562,7 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
goto fail;
}
pubkey = buffer_get_ssh_string(buffer);
- if (g == NULL) {
+ if (pubkey == NULL) {
ssh_string_burn(p);
ssh_string_free(p);
ssh_string_burn(q);