[sr-dev] git:master:62f7be22: cdp: increase the amount of avps allocated when reading AVP_Vendor_Specific_Application_Id

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 3 21:50:40 CET 2022


Module: kamailio
Branch: master
Commit: 62f7be2281f5dd91a5668c4b84e52a7d7169e21f
URL: https://github.com/kamailio/kamailio/commit/62f7be2281f5dd91a5668c4b84e52a7d7169e21f

Author: Kristiyan Peychev <kristiyan.peychev at flolive.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-03T21:50:35+01:00

cdp: increase the amount of avps allocated when reading AVP_Vendor_Specific_Application_Id

---

Modified: src/modules/cdp/peerstatemachine.c

---

Diff:  https://github.com/kamailio/kamailio/commit/62f7be2281f5dd91a5668c4b84e52a7d7169e21f.diff
Patch: https://github.com/kamailio/kamailio/commit/62f7be2281f5dd91a5668c4b84e52a7d7169e21f.patch

---

diff --git a/src/modules/cdp/peerstatemachine.c b/src/modules/cdp/peerstatemachine.c
index b83654bf1d..a4520d797d 100644
--- a/src/modules/cdp/peerstatemachine.c
+++ b/src/modules/cdp/peerstatemachine.c
@@ -732,7 +732,7 @@ void save_peer_applications(peer *p,AAAMessage *msg)
 				total_cnt += supported_vendor_id_avp_cnt;
 				break;
 			case AVP_Vendor_Specific_Application_Id:
-				total_cnt+=2;/* wasteful, but let's skip decoding */
+				total_cnt+=6;/* wasteful, but let's skip decoding */
 				break;
 		}
 	LM_DBG("Total count of applications is %d\n", total_cnt);




More information about the sr-dev mailing list