From e090e551797db2255b592b817c09b20362c41038 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 5 Apr 2018 18:23:03 +0100 Subject: [PATCH] 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. --- contrib/logparse.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/logparse.pl b/contrib/logparse.pl index 335e2a64..62b8ca0e 100755 --- a/contrib/logparse.pl +++ b/contrib/logparse.pl @@ -881,7 +881,7 @@ sub parseone { my $len = unpack "N", pack "C*", @bytes; @bytes = splice @$data, 0, $len; return "" 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.