Navigation


Changeset 1120:c473581adff2 in freeDiameter for libfdcore/hooks.c


Ignore:
Timestamp:
May 14, 2013, 1:32:28 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Cleanup some traces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/hooks.c

    r1103 r1120  
    333333                                if (msg) {
    334334                                        DiamId_t id = NULL;
    335                                         size_t idlen;
    336                                         if (!fd_msg_source_get( msg, &id, &idlen ))
     335                                        if (!fd_msg_source_get( msg, &id, NULL ))
    337336                                                id = (DiamId_t)"<error getting source>";
    338337                                       
     
    353352                        case HOOK_MESSAGE_ROUTING_ERROR: {
    354353                                DiamId_t id = NULL;
    355                                 size_t idlen;
    356                                 if (!fd_msg_source_get( msg, &id, &idlen ))
     354                                if (!fd_msg_source_get( msg, &id, NULL ))
    357355                                        id = (DiamId_t)"<error getting source>";
    358356
     
    397395                       
    398396                        case HOOK_PEER_CONNECT_SUCCESS: {
     397                                DiamId_t id = NULL;
     398                                if ((!fd_msg_source_get( msg, &id, NULL )) && (id == NULL)) { /* The CEA is locally issued */
     399                                        fd_msg_answ_getq(msg, &msg); /* We dump the CER in that case */
     400                                }
    399401                                CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
    400402                                LOG_N("Connected to '%s', remote capabilities: %s", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", buf);
Note: See TracChangeset for help on using the changeset viewer.