Mercurial > hg > freeDiameter
diff libfdcore/p_ce.c @ 1191: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 | e72c9dad62ac |
line wrap: on
line diff
--- a/libfdcore/p_ce.c Mon Jun 10 16:44:18 2013 +0800 +++ b/libfdcore/p_ce.c Tue Jun 11 09:18:52 2013 +0800 @@ -469,8 +469,10 @@ } switch (inhdr->avp_code) { case AC_VENDOR_ID: /* Vendor-Id */ +#ifndef WORKAROUND_ACCEPT_INVALID_VSAI if (vid != 0) - invalid++; /* We already had one such AVP */ + invalid++; /* We already had one such AVP. This is invalid according to RFC6733 but not RFC3588 (but there is an erratum) */ +#endif /* WORKAROUND_ACCEPT_INVALID_VSAI */ vid = inhdr->avp_value->u32; break; case AC_AUTH_APPLICATION_ID: /* Auth-Application-Id */