summaryrefslogtreecommitdiffstats
path: root/src/messages.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-30 10:16:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-30 10:16:53 +0200
commit60b92e458e1cf16f0029d9251e0f117ff27a02d0 (patch)
tree1f099e92f170a4aa3d921efc7adbd5a22f75627a /src/messages.c
parente2365775030fa3c696e1f75997d5bc856a19e3ed (diff)
downloadlibssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.gz
libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.tar.xz
libssh-60b92e458e1cf16f0029d9251e0f117ff27a02d0.zip
pki: Use consistent API for ssh_pki_export_pubkey_blob().
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c
index ca2df01..a9398bb 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -415,8 +415,8 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session,
}
/* Add the publickey as blob */
- str = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey);
- if (str == NULL) {
+ rc = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &str);
+ if (rc < 0) {
ssh_buffer_free(buffer);
return NULL;
}