Commit 290c5f13 authored by Shashi Guruprasad's avatar Shashi Guruprasad

Fix in dotrafficconfig(). While adding the REMOTE() check, a variable's

scope was inadvartently reduced to the if block instead of the entire
dotrafficconfig() function. This caused nse not to start up automatically
parent ce9583ba
......@@ -1139,6 +1139,7 @@ sub dotrafficconfig()
my $TM;
my $boss;
my $startnse = 0;
my $nseconfig = "";
#
# Kinda ugly, but there is too much perl goo included by Socket to put it
......@@ -1283,7 +1284,7 @@ sub dotrafficconfig()
$TM = OPENTMCC(TMCCCMD_NSECONFIGS);
$record_sep = $/;
undef($/);
my $nseconfig = <$TM>;
$nseconfig = <$TM>;
$/ = $record_sep;
print NSECFG $nseconfig;
CLOSETMCC($TM);
......
......@@ -1139,6 +1139,7 @@ sub dotrafficconfig()
my $TM;
my $boss;
my $startnse = 0;
my $nseconfig = "";
#
# Kinda ugly, but there is too much perl goo included by Socket to put it
......@@ -1283,7 +1284,7 @@ sub dotrafficconfig()
$TM = OPENTMCC(TMCCCMD_NSECONFIGS);
$record_sep = $/;
undef($/);
my $nseconfig = <$TM>;
$nseconfig = <$TM>;
$/ = $record_sep;
print NSECFG $nseconfig;
CLOSETMCC($TM);
......
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