comparison libfdcore/p_ce.c @ 1193:60e7b02a3ce7

Allow Vendor-Specific-Application-Id with several Vendor-Id AVPs as seen on some equipments
author Sebastien Decugis <sdecugis@freediameter.net>
date Tue, 11 Jun 2013 09:18:52 +0800
parents 56c36d1007b4
children
comparison
equal deleted inserted replaced
1192:6a1042d8075b 1193:60e7b02a3ce7
467 ASSERT(0); /* To check if this really happens, and understand why... */ 467 ASSERT(0); /* To check if this really happens, and understand why... */
468 goto innext; 468 goto innext;
469 } 469 }
470 switch (inhdr->avp_code) { 470 switch (inhdr->avp_code) {
471 case AC_VENDOR_ID: /* Vendor-Id */ 471 case AC_VENDOR_ID: /* Vendor-Id */
472 #ifndef WORKAROUND_ACCEPT_INVALID_VSAI
472 if (vid != 0) 473 if (vid != 0)
473 invalid++; /* We already had one such AVP */ 474 invalid++; /* We already had one such AVP. This is invalid according to RFC6733 but not RFC3588 (but there is an erratum) */
475 #endif /* WORKAROUND_ACCEPT_INVALID_VSAI */
474 vid = inhdr->avp_value->u32; 476 vid = inhdr->avp_value->u32;
475 break; 477 break;
476 case AC_AUTH_APPLICATION_ID: /* Auth-Application-Id */ 478 case AC_AUTH_APPLICATION_ID: /* Auth-Application-Id */
477 if (auth_aid != 0) 479 if (auth_aid != 0)
478 invalid++; /* We already had one such AVP */ 480 invalid++; /* We already had one such AVP */
"Welcome to our mercurial repository"