Commit 2485339b authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix.

parent 99441af4
......@@ -1281,14 +1281,10 @@ my %members = ();
sub Lookup($$$)
{
my ($class, $lan, $memberid) = @_;
return undef
if (!ref($lan));
my $lanid = (ref($lan) ? $lan->lanid() : $lan);
return undef
if (! ($memberid =~ /^\d*$/));
my $lanid = $lan->lanid();
# Look in cache first
return $members{"${lanid}:${memberid}"}
......@@ -1532,7 +1528,7 @@ sub GetInterface($)
require Interface;
return -1
return undef
if ($self->GetNodeIface(\$node, \$iface));
return Interface->LookupByIface($node, $iface);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment