mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Improve kbdint_new.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@637 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -925,14 +925,16 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
|
||||
return SSH_AUTH_DENIED;
|
||||
}
|
||||
|
||||
static struct ssh_kbdint *kbdint_new() {
|
||||
struct ssh_kbdint *kbd = malloc(sizeof (struct ssh_kbdint));
|
||||
static struct ssh_kbdint *kbdint_new(void) {
|
||||
struct ssh_kbdint *kbd;
|
||||
|
||||
if (kbd == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
memset(kbd,0,sizeof(*kbd));
|
||||
return kbd;
|
||||
kbd = malloc(sizeof (struct ssh_kbdint));
|
||||
if (kbd == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
ZERO_STRUCTP(kbd);
|
||||
|
||||
return kbd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user