RangeNetworks / openbts

GSM+GPRS Radio Access Network Node
GNU Affero General Public License v3.0
869 stars 328 forks source link

Typo bug .... #4

Open gundam00 opened 10 years ago

gundam00 commented 10 years ago

For the file openbts/Control/L3MobilityManagement.cpp there is the function ....

static void checkForConfigChanges() { // TODO: we could save these in the TMSI table properties so that we dont clear the auth cache when // the BTS is rebooted. static string saveOpenRegistrationPat, saveRejectPat; string openRegistrationPat(gConfig.getStr("Control.LUR.OpenRegistration")); string rejectPat(gConfig.getStr("Control.LUR.OpenRegistration.Reject"));

if (saveOpenRegistrationPat != openRegistrationPat || saveRejectPat != rejectPat) {
    saveOpenRegistrationPat = openRegistrationPat;
    saveRejectPat != rejectPat;
    gTMSITable.tmsiTabClearAuthCache();
}

}

The comparison saveRejectPat != rejectPat is used in "if" statement and also in the subsequent code-block.

I presume the block should contain saveRejectPat = rejectPat; instead of the no-effect-call saveRejectPat != rejectPat;

Cheers.