Changeset 273:bce8e5b7bf78 in freeDiameter for extensions/app_radgw/rgwx_auth.c
- Timestamp:
- Apr 21, 2010, 2:23:04 PM (14 years ago)
- Branch:
- default
- Children:
- 274:c8e57b3ca75f, 275:0941db40bcba
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgwx_auth.c
r271 r273 915 915 static int auth_diam_ans( struct rgwp_config * cs, struct session * session, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli ) 916 916 { 917 struct msg_hdr * hdr; 917 918 struct avp *avp, *next, *avp_x, *avp_y, *asid, *aoh; 918 919 struct avp_hdr *ahdr, *sid, *oh; … … 1049 1050 /* The RFC text says that this should always be the case, but it seems odd... */ 1050 1051 if ((*rad_fw)->hdr->code == RADIUS_CODE_ACCESS_ACCEPT) { 1052 /* Add the Session-Id */ 1051 1053 if (sizeof(buf) < snprintf(buf, sizeof(buf), "Diameter/%.*s", 1052 1054 sid->avp_value->os.len, sid->avp_value->os.data)) { 1055 TRACE_DEBUG(INFO, "Data truncated in Class attribute: %s", buf); 1056 } 1057 CONV2RAD_STR(RADIUS_ATTR_CLASS, buf, strlen(buf), 0); 1058 1059 /* Add the auth-application-id required for STR */ 1060 CHECK_FCT( fd_msg_hdr( *diam_ans, &hdr ) ); 1061 if (sizeof(buf) < snprintf(buf, sizeof(buf), CLASS_AAI_PREFIX "%u", 1062 hdr->msg_appl)) { 1053 1063 TRACE_DEBUG(INFO, "Data truncated in Class attribute: %s", buf); 1054 1064 }
Note: See TracChangeset
for help on using the changeset viewer.