1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

misc: Remove session from ssh_get_local_username().

This commit is contained in:
Andreas Schneider
2011-08-16 22:24:31 +02:00
parent 1a0fbedc2e
commit ddcb88070b
4 changed files with 20 additions and 24 deletions

View File

@@ -1247,7 +1247,7 @@ int ssh_publickey_to_file(ssh_session session, const char *file,
return SSH_ERROR;
}
user = ssh_get_local_username(session);
user = ssh_get_local_username();
if (user == NULL) {
SAFE_FREE(pubkey_64);
return SSH_ERROR;