Navigation


Changeset 725:8b03c672261f in freeDiameter


Ignore:
Timestamp:
Feb 22, 2011, 3:50:45 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix a small bug in peers validation process

Location:
libfdcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/p_ce.c

    r706 r725  
    820820        }
    821821       
     822        /* Save the credentials if handshake already occurred */
     823        if ( fd_cnx_getTLS(peer->p_cnxctx) ) {
     824                CHECK_FCT( fd_cnx_getcred(peer->p_cnxctx, &peer->p_hdr.info.runtime.pir_cert_list, &peer->p_hdr.info.runtime.pir_cert_list_size) );
     825        }
     826       
    822827        /* Validate the peer if needed */
    823828        if (peer->p_flags.pf_responder) {
  • libfdcore/peers.c

    r706 r725  
    457457        /* First, check if the Origin-Host value  */
    458458        if (!fd_os_is_valid_DiameterIdentity(avp_hdr->avp_value->os.data, avp_hdr->avp_value->os.len)) {
    459                 TRACE_DEBUG(INFO, "Received new CER with invalid \\0 in its Origin-Host");
     459                TRACE_DEBUG(INFO, "Received new CER with invalid Origin-Host");
    460460                CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, cer, MSGFL_ANSW_ERROR ) );
    461461                CHECK_FCT( fd_msg_rescode_set(*cer, "ER_DIAMETER_INVALID_AVP_VALUE",
Note: See TracChangeset for help on using the changeset viewer.