noxxi / p5-net-sip

Net::SIP Perl Module
Other
15 stars 22 forks source link

Net::SIP::Request incorrect hash dereference for $user2pass in authorize sub #53

Closed jpfox156 closed 2 years ago

jpfox156 commented 2 years ago

Line 226, of Request.pm

$realm2upw is assigned the dereferenced value of the hash $user2pass ($realm2upw = %$user2pass). Subsequent use of $realm2upw assumes that $realm2upw is a hash ref, resulting in error:

dispatcher croaked: Can't use string ("2") as a HASH ref while "strict refs" in use at /usr/share/perl5/Net/SIP/Request.pm line 275

$realm2upw should be passed the ref directly or should be assigned as %realm2upw.

noxxi commented 2 years ago

Thanks for the bug report. It should be fixed in ea385f7