diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 10:16:53 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-30 10:16:53 +0200 |
commit | 60b92e458e1cf16f0029d9251e0f117ff27a02d0 (patch) | |
tree | 1f099e92f170a4aa3d921efc7adbd5a22f75627a /src/agent.c | |
parent | e2365775030fa3c696e1f75997d5bc856a19e3ed (diff) | |
download | libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.gz libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.xz libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.zip |
pki: Use consistent API for ssh_pki_export_pubkey_blob().
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/agent.c b/src/agent.c index 548b958..420b23d 100644 --- a/src/agent.c +++ b/src/agent.c @@ -441,8 +441,8 @@ ssh_string ssh_agent_sign_data(ssh_session session, return NULL; } - key_blob = ssh_pki_export_pubkey_blob(pubkey); - if (key_blob == NULL) { + rc = ssh_pki_export_pubkey_blob(pubkey, &key_blob); + if (rc < 0) { ssh_buffer_free(request); return NULL; } |