userjack6880 / Open-Report-Parser

A Perl based tool to parse DMARC reports from an IMAP mailbox or from the filesystem, and insert the information into a database. Derived from Techsneeze's dmarcts-report-parser
GNU General Public License v3.0
33 stars 9 forks source link

[Bug]: Not a HASH reference at /root/Open-Report-Parser/report-parser.pl line 1651. #36

Open azerty9971 opened 5 months ago

azerty9971 commented 5 months ago

Describe the bug If you have the tls report being served by an IPv6 server, then the following lines don't work: elsif($nip = inet_pton(AF_INET6, $ip)) { $ipval = $dbx{to_hex_string}{$nip}; <== this one $iptype = "ip6"; }

I'm not a Perl developer at all, but should it be parenthesis instead of brackets around $nip ?

The error message that is sent is the following: Not a HASH reference at /root/Open-Report-Parser/report-parser.pl line 1651.

To Reproduce See above

Expected behavior This should just work out of the box

Screenshots

Software Version [X] Version 0 Alpha 5 [] Version 0 Alpha 4 [] Version 0 Alpha 3 [] Version 0 Alpha 2

Server (please complete the following information):