mirror of
https://github.com/clearml/dropbear
synced 2025-06-23 02:06:55 +00:00
Fix leak of keybuf in recv_msg_userauth_pk_ok, courtesy of Klocwork
--HG-- extra : convert_revision : 9c39c3f447a47f61606df5d4bee364a449f12e18
This commit is contained in:
parent
d0533106a8
commit
d4bc0aec5d
@ -60,8 +60,8 @@ void cli_pubkeyfail() {
|
|||||||
|
|
||||||
void recv_msg_userauth_pk_ok() {
|
void recv_msg_userauth_pk_ok() {
|
||||||
|
|
||||||
struct SignKeyList *keyitem;
|
struct SignKeyList *keyitem = NULL;
|
||||||
buffer* keybuf;
|
buffer* keybuf = NULL;
|
||||||
char* algotype = NULL;
|
char* algotype = NULL;
|
||||||
unsigned int algolen;
|
unsigned int algolen;
|
||||||
int keytype;
|
int keytype;
|
||||||
@ -122,6 +122,8 @@ void recv_msg_userauth_pk_ok() {
|
|||||||
TRACE(("That was whacky. We got told that a key was valid, but it didn't match our list. Sounds like dodgy code on Dropbear's part"))
|
TRACE(("That was whacky. We got told that a key was valid, but it didn't match our list. Sounds like dodgy code on Dropbear's part"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf_free(keybuf);
|
||||||
|
|
||||||
TRACE(("leave recv_msg_userauth_pk_ok"))
|
TRACE(("leave recv_msg_userauth_pk_ok"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user