Navigation


Changeset 738:d666051658bd in freeDiameter for libfdproto/rt_data.c


Ignore:
Timestamp:
Mar 2, 2011, 6:21:59 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix broken 'almostcasecmp' logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/rt_data.c

    r717 r738  
    160160        for (li = rtd->candidates.next; li != &rtd->candidates; li = li->next) {
    161161                struct rtd_candidate * c = (struct rtd_candidate *) li;
    162                
    163                 int cmp = fd_os_almostcasecmp(id, idsz, c->diamid, c->diamidlen);
     162                int cont;
     163                int cmp = fd_os_almostcasesrch(id, idsz, c->diamid, c->diamidlen, &cont);
    164164               
    165165                if (!cmp) {
     
    172172                }
    173173               
    174                 if (cmp > 0)
     174                if (cont)
    175175                        continue;
    176176               
Note: See TracChangeset for help on using the changeset viewer.