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

logparse.pl: fix a thinko in &parse.

The type code for an mpint in the input format string is "m", not
"mpint". This hasn't come up yet as far as I can see, but as and when
I add verbose dump routines for packet types that involve asymmetric
crypto, it will.
This commit is contained in:
Simon Tatham 2018-04-05 18:23:03 +01:00
parent 48625ece7d
commit e090e55179

View File

@ -881,7 +881,7 @@ sub parseone {
my $len = unpack "N", pack "C*", @bytes;
@bytes = splice @$data, 0, $len;
return "<missing>" if @bytes < $len or grep { $_<0 } @bytes;
if ($type eq "mpint") {
if ($type eq "m") {
my $str = "";
if ($bytes[0] >= 128) {
# Take two's complement.