Skip Menu |

This queue is for tickets about the Net-SIP CPAN distribution.

Report information
The Basics
Id: 35121
Status: resolved
Priority: 0/
Queue: Net-SIP

People
Owner: Nobody in particular
Requestors: lolando [...] debian.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Logic error in Net::SIP::Endpoint::Context::handle_response
Date: Wed, 16 Apr 2008 17:49:06 +0200
To: bug-Net-SIP [...] rt.cpan.org
From: Roland Mas <lolando [...] debian.org>
Hi, The beginning of the handle_response method looks like this: # find and remove transaction because I got response for it # if response does not terminates transaction one need to add # it again my $tid = $response->tid; my $trans = $self->{_transactions}; my (@ntrans,$tr); foreach my $t (@$trans) { if ( $t->{tid} eq $tid ) { $tr = $t; } else { push @ntrans,$tr } } From reading the comment and the following "$tr || do {...}" block, I believe that else clause should actually do "push @ntrans, $t". This fixes a bug I have here: "Use of uninitialized value in string eq at /usr/share/perl5/Net/SIP/Endpoint/Context.pm line 249." warning, and no further processing of packets (no sessions established) from then on. Roland. -- Roland Mas Qui trop embrasse rate son train.
Subject: Re: [rt.cpan.org #35121] Logic error in Net::SIP::Endpoint::Context::handle_response
Date: Fri, 18 Apr 2008 10:19:08 +0200
To: Roland Mas via RT <bug-Net-SIP [...] rt.cpan.org>
From: Steffen Ullrich <Steffen_Ullrich [...] genua.de>
Hi, Thank You for yout input. You are right. I'll fix it for the next release. Steffen On Wed, Apr 16, 2008 at 11:50:00AM -0400, Roland Mas via RT <bug-Net-SIP@rt.cpan.org> wrote: Show quoted text
> > Wed Apr 16 11:49:58 2008: Request 35121 was acted upon. > Transaction: Ticket created by lolando@debian.org > Queue: Net-SIP > Subject: Logic error in Net::SIP::Endpoint::Context::handle_response > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: lolando@debian.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=35121 > > > > Hi, > > The beginning of the handle_response method looks like this: > > # find and remove transaction because I got response for it > # if response does not terminates transaction one need to add > # it again > my $tid = $response->tid; > my $trans = $self->{_transactions}; > my (@ntrans,$tr); > foreach my $t (@$trans) { > if ( $t->{tid} eq $tid ) { > $tr = $t; > } else { > push @ntrans,$tr > } > } > > From reading the comment and the following "$tr || do {...}" block, > I believe that else clause should actually do "push @ntrans, $t". > > This fixes a bug I have here: "Use of uninitialized value in string eq > at /usr/share/perl5/Net/SIP/Endpoint/Context.pm line 249." warning, > and no further processing of packets (no sessions established) from > then on. > > Roland. > -- > Roland Mas > > Qui trop embrasse rate son train. >
fixed in version 0.45