Mercurial > hg > freeDiameter
diff extensions/app_radgw/radius.c @ 553:153cd2600fcf
Fix another issue
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 15 Sep 2010 14:52:24 +0900 |
parents | d2be88628747 |
children | 4a9f08d6b6ba |
line wrap: on
line diff
--- a/extensions/app_radgw/radius.c Wed Sep 15 14:45:55 2010 +0900 +++ b/extensions/app_radgw/radius.c Wed Sep 15 14:52:24 2010 +0900 @@ -309,8 +309,8 @@ } } -/* Dump a message -- can be used safely with a struct radius_msg as parameter (we don't dump the metadata) */ -void rgw_msg_dump(struct rgw_radius_msg_meta * msg) +/* Dump a message */ +void rgw_msg_dump(struct rgw_radius_msg_meta * msg, int has_meta) { unsigned char *auth; size_t i; @@ -330,7 +330,7 @@ fd_log_debug(" - Type: 0x%02hhx (%s)\n Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); radius_msg_dump_attr_val(attr); } - if (msg->ps_nb) { + if (has_meta && msg->ps_nb) { fd_log_debug("---- hidden attributes:\n"); for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) { struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);