From 0db2021b539c24ef39ab47fba673b9dcd9fd8259 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky <tsbere@mvlc.org> Date: Tue, 9 Jun 2015 10:39:21 -0400 Subject: [PATCH] Defined, not Exists Exists returns true even if set to undef, which we do to "reset". Signed-off-by: Thomas Berezansky <tsbere@mvlc.org> --- Sip/MsgType.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index ab6a86e..91bbbd6 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -780,7 +780,7 @@ sub handle_sc_status { $protocol_version = $new_proto; } - unless (exists $server->{account}) { + unless (defined $server->{account}) { # If we haven't logged in yet, go ahead and # return the SC status anyway, arbitrarily using the # first account in Perl string sort order to specify -- 2.11.0