[Bug 269582] dns/ddclient: Use of uninitialized value $2 in concatenation (.) or string at /usr/local/lib/perl5/site_perl/IO/Socket/SSL.pm line 792.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Feb 2023 11:26:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269582

--- Comment #3 from Sergei Vyshenski <svysh.fbsd@gmail.com> ---
(In reply to mjl from comment #1)

Hi,

1) We are talking about a warning, not about an error, correct?

2) I could see nothing wrong in the code which Matthew mentions:

                    $host =~s{^
                        (?:
                            ([^:\[]+) |    # ipv4|host
                            (\[(.*)\])     # [ipv6|host]
                        )
                        (:[\w\-]+)?        # optional :port
                    $}{$1$2}x;             # ipv4|host|ipv6

3) This version 2.079 of IO-Socket-SSL has been ported a month ago, and two
more versions ported since then. Does this correlate with things that went
wrong "recently"?

4) 4 hours ago upstream has disabled warnings on uninitialized values:
https://github.com/noxxi/p5-io-socket-ssl/blame/master/lib/IO/Socket/SSL.pm

Can we consider the case closed, or should I revert port p5-IO-Socket-SSL from 
2.081 to 2.078?

Regards, Sergei

-- 
You are receiving this mail because:
You are the assignee for the bug.