Mercurial > hg > freeDiameter
comparison extensions/app_radgw/rgw_clients.c @ 738:d666051658bd
Fix broken 'almostcasecmp' logic
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 02 Mar 2011 18:21:59 +0900 |
parents | 2d5e76dd1117 |
children | 4a9f08d6b6ba |
comparison
equal
deleted
inserted
replaced
737:03bcd4870f44 | 738:d666051658bd |
---|---|
729 corresponds to an entry in the Route-Record AVP. If no match is | 729 corresponds to an entry in the Route-Record AVP. If no match is |
730 found, then an error is logged, but no other action is taken. | 730 found, then an error is logged, but no other action is taken. |
731 */ | 731 */ |
732 | 732 |
733 /* first, check if the nas_id is the fqdn of the peer or a known alias */ | 733 /* first, check if the nas_id is the fqdn of the peer or a known alias */ |
734 if (!fd_os_almostcasecmp(nas_id + 1, nas_id_len, | 734 if (!fd_os_almostcasesrch(nas_id + 1, nas_id_len, |
735 cli->fqdn, cli->fqdn_len)) { | 735 cli->fqdn, cli->fqdn_len, NULL)) { |
736 TRACE_DEBUG(FULL, "NAS-Identifier contains the fqdn of the client"); | 736 TRACE_DEBUG(FULL, "NAS-Identifier contains the fqdn of the client"); |
737 found = 1; | 737 found = 1; |
738 } else { | 738 } else { |
739 for (idx = 0; idx < cli->aliases_nb; idx++) { | 739 for (idx = 0; idx < cli->aliases_nb; idx++) { |
740 if (!fd_os_cmp(nas_id + 1, nas_id_len, | 740 if (!fd_os_cmp(nas_id + 1, nas_id_len, |