Navigation


Changeset 553:153cd2600fcf in freeDiameter


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

Fix another issue

Location:
extensions/app_radgw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/radius.c

    r552 r553  
    310310}
    311311
    312 /* Dump a message  -- can be used safely with a struct radius_msg as parameter (we don't dump the metadata) */
    313 void rgw_msg_dump(struct rgw_radius_msg_meta * msg)
     312/* Dump a message  */
     313void rgw_msg_dump(struct rgw_radius_msg_meta * msg, int has_meta)
    314314{
    315315        unsigned char *auth;
     
    331331                radius_msg_dump_attr_val(attr);
    332332        }
    333         if (msg->ps_nb) {
     333        if (has_meta && msg->ps_nb) {
    334334                fd_log_debug("---- hidden attributes:\n");
    335335                for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) {
  • extensions/app_radgw/rgw.h

    r550 r553  
    6666void rgw_msg_free(struct rgw_radius_msg_meta ** msg);
    6767int rgw_msg_parse(unsigned char * buf, size_t len, struct rgw_radius_msg_meta ** msg);
    68 void rgw_msg_dump(struct rgw_radius_msg_meta * msg);
     68void rgw_msg_dump(struct rgw_radius_msg_meta * msg, int has_meta);
    6969
    7070/* Local RADIUS server(s) configuration */
  • extensions/app_radgw/rgw_clients.c

    r550 r553  
    999999        /* Debug */
    10001000        TRACE_DEBUG(FULL, "RADIUS message ready for sending:");
    1001         rgw_msg_dump((struct rgw_radius_msg_meta *)*msg);
     1001        rgw_msg_dump((struct rgw_radius_msg_meta *)*msg, 0);
    10021002
    10031003        /* Send the message */
  • extensions/app_radgw/rgw_servers.c

    r263 r553  
    158158                msg->port = port;
    159159               
    160                 rgw_msg_dump(msg);
     160                rgw_msg_dump(msg, 1);
    161161               
    162162                /* queue the message for a worker thread */
Note: See TracChangeset for help on using the changeset viewer.