From 8577beb9a851bc51d33122af05ac79690fd0ce0c Mon Sep 17 00:00:00 2001 From: djfiander Date: Thu, 4 May 2006 01:21:42 +0000 Subject: [PATCH] '0' is a valid sequence number (it comes after '9'), so we have to see if the sequence number is set, not just if it's true. --- Sip.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sip.pm b/Sip.pm index a42b270..36a0f53 100644 --- a/Sip.pm +++ b/Sip.pm @@ -140,7 +140,7 @@ sub write_msg { my $cksum; if ($error_detection) { - if ($self->{seqno}) { + if (defined($self->{seqno})) { $msg .= 'AY' . $self->{seqno}; } $msg .= 'AZ'; -- 2.11.0