1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

cmdgen: fix error report after ssh2_userkey_loadpub fails.

We strbuf_free(ssh2blob), but forgot to null the pointer out
afterwards, which means a subsequent check for NULL believes there
wasn't a problem, and nulls out the error message pointer instead!
This commit is contained in:
Simon Tatham 2019-01-29 20:12:37 +00:00
parent 85b1916ca6
commit ed8a47c1dd

View File

@ -817,6 +817,7 @@ int main(int argc, char **argv)
bits = -1;
} else {
strbuf_free(ssh2blob);
ssh2blob = NULL;
}
sfree(ssh2alg);
} else {