[asterisk-bugs] [LibSS7 0015565]: Wrong program logic (LFU will NOT be sent)

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jan 23 13:47:22 CST 2011


The following issue is now in status NEW (again) 
====================================================================== 
https://issues.asterisk.org/view.php?id=15565 
====================================================================== 
Reported By:                Tian00di00
Assigned To:                
====================================================================== 
Project:                    LibSS7
Issue ID:                   15565
Category:                   General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 269 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-23 22:59 CDT
Last Modified:              2011-01-23 13:47 CST
====================================================================== 
Summary:                    Wrong program logic (LFU will NOT be sent)
Description: 
Version SVN
SVN Trunk
SVN Revision 269

Source file: mtp3.c

Lines: 452-464

/* try force uninhibit */
if (i == ss7->numlinks) {
    for (i = 0; i < ss7->numlinks; i++) {
        if (ss7->links[i]->inhibit & INHIBITED_REMOTELY) {
            if (!(ss7->links[i]->got_sent_netmsg & SENT_LFU))
                break;  // **** This break should be deleted! ****
            AUTORL(rl, ss7->links[i]);
            net_mng_send(ss7->links[i], NET_MNG_LFU, rl, 0);
            ss7_message(ss7, "Forced uninhibiting remotely inhibited link

(no more signalling links are in service) SLC: %i ADJPC: %i\n", 
ss7->links[i]->slc, ss7->links[i]->dpc);
            break;
        }
    }
}

Bug description: the first 'break' keyword is misused and should be
deleted! 
Apparently the logic of the program is to check whether a LFU has been
sent 
to the far end, and if it is not the case, send a LFU, but the 'break' 
breaks the logic.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-23 13:47 tilghman       Asterisk Version         1.6.0.10 => SVN     
2011-01-23 13:47 tilghman       Assigned To              mattf =>            
2011-01-23 13:47 tilghman       Status                   assigned => new     
======================================================================




More information about the asterisk-bugs mailing list