Navigation


Changeset 403:26aafbbc1640 in freeDiameter for freeDiameter/p_ce.c


Ignore:
Timestamp:
Jul 8, 2010, 2:24:19 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Cleanup all compilation warnings in base code for 32 bit arch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/p_ce.c

    r378 r403  
    309309                               
    310310                                /* We check that the value matches what we know, otherwise disconnect the peer */
    311                                 if (strncasecmp(hdr->avp_value->os.data, peer->p_hdr.info.pi_diamid, hdr->avp_value->os.len)) {
     311                                /* here also, using strcasecmp on (supposed) UTF8 data might be bad idea... to be improved */
     312                                if (strncasecmp((char *)hdr->avp_value->os.data, peer->p_hdr.info.pi_diamid, hdr->avp_value->os.len)) {
    312313                                        TRACE_DEBUG(INFO, "Received a message with Origin-Host set to '%.*s' while expecting '%s'\n",
    313314                                                        hdr->avp_value->os.len, hdr->avp_value->os.data, peer->p_hdr.info.pi_diamid);
Note: See TracChangeset for help on using the changeset viewer.