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,13 +925,15 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) {
|
|||||||
return SSH_AUTH_DENIED;
|
return SSH_AUTH_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ssh_kbdint *kbdint_new() {
|
static struct ssh_kbdint *kbdint_new(void) {
|
||||||
struct ssh_kbdint *kbd = malloc(sizeof (struct ssh_kbdint));
|
struct ssh_kbdint *kbd;
|
||||||
|
|
||||||
|
kbd = malloc(sizeof (struct ssh_kbdint));
|
||||||
if (kbd == NULL) {
|
if (kbd == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
memset(kbd,0,sizeof(*kbd));
|
ZERO_STRUCTP(kbd);
|
||||||
|
|
||||||
return kbd;
|
return kbd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user