Bug#947054: Crush with invalid? response
I've only seen this bug 2 or 3 times in the last year, but here is the fix I used to avoid the warning. --- /usr/bin/jdresolve 2018-01-04 18:21:09.0 + +++ jdresolve 2021-11-14 00:28:17.725549514 + @@ -783,6 +783,8 @@ my $type = $socks{fileno($socket)}{TYPE}; my $query = $socks{fileno($socket)}{QUERY}; + !(defined $type) and return 0; + if ($type eq 'H') { !exists $hosts{$query} and die "no such host: $query"; undef $hosts{$query}{SOCKET};
Bug#947054: Crush with invalid? response
Package: jdresolve Version: 0.6.1-5.1 jdresolve will be crushed to resolve the IP address 146.155.4.14. $echo 146.155.4.14 > /tmp/t $jdresolve /tmp/t Use of uninitialized value $type in string eq at /usr/bin/jdresolve line 786, line 1. Use of uninitialized value $query in exists at /usr/bin/jdresolve line 790, line 1. Use of uninitialized value $query in concatenation (.) or string at /usr/bin/jdresolve line 790, line 1. no such class: at /usr/bin/jdresolve line 790, line 1. -- ISHIKAWA Mutsumi ,