mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
sshd: make sure no aliases on last_alloc
This commit is contained in:
parent
3a499dd53d
commit
08f47c84d2
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* libwebsockets - lws-plugin-ssh-base - sshd.c
|
||||
*
|
||||
* Copyright (C) 2017 Andy Green <andy@warmcat.com>
|
||||
* Copyright (C) 2017 - 2018 Andy Green <andy@warmcat.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -1114,6 +1114,7 @@ again:
|
|||
|
||||
case SSHS_NVC_DO_UAR_PUBKEY_BLOB:
|
||||
pss->ua->pubkey = pss->last_alloc;
|
||||
pss->last_alloc = NULL;
|
||||
pss->ua->pubkey_len = pss->npos;
|
||||
/*
|
||||
* RFC4253
|
||||
|
@ -1171,6 +1172,7 @@ again:
|
|||
}
|
||||
lwsl_info("SSHS_DO_UAR_SIG\n");
|
||||
pss->ua->sig = pss->last_alloc;
|
||||
pss->last_alloc = NULL;
|
||||
pss->ua->sig_len = pss->npos;
|
||||
pss->parser_state = SSHS_MSG_EAT_PADDING;
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ ssh_ops_is_pubkey_authorized(const char *username, const char *type,
|
|||
*/
|
||||
|
||||
if (memcmp(peer, ps, peer_len)) {
|
||||
lwsl_notice("factors mismatch\n");
|
||||
lwsl_info("factors mismatch\n");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue