aboutsummaryrefslogtreecommitdiff
path: root/src/legacy.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:31:24 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-14 13:31:24 +0200
commitc64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a (patch)
tree33131e402f35d800cf923f837ae4c72166703b27 /src/legacy.c
parent0d3deeec101b0d6568d7c04eda833bde47c7329c (diff)
downloadlibssh-c64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a.tar.gz
libssh-c64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a.tar.xz
libssh-c64ec43eef8ec5a8b8a8f4c4c3216043aea8e08a.zip
src: Remove enter_function() and leave_function().
Diffstat (limited to 'src/legacy.c')
-rw-r--r--src/legacy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/legacy.c b/src/legacy.c
index 7f2bb4d0..6e7bfffc 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -108,12 +108,10 @@ int ssh_userauth_privatekey_file(ssh_session session,
int rc = SSH_AUTH_ERROR;
size_t klen = strlen(filename) + 4 + 1;
- enter_function();
-
pubkeyfile = malloc(klen);
if (pubkeyfile == NULL) {
ssh_set_error_oom(session);
- leave_function();
+
return SSH_AUTH_ERROR;
}
snprintf(pubkeyfile, klen, "%s.pub", filename);
@@ -138,7 +136,6 @@ error:
SAFE_FREE(pubkeyfile);
ssh_string_free(pubkey);
- leave_function();
return rc;
}