Module: kamailio
Branch: master
Commit: 1ceeba7364b745b6ca2840e830d006a37460d10e
URL: 
https://github.com/kamailio/kamailio/commit/1ceeba7364b745b6ca2840e830d006a37460d10e

Author: Dragos Vingarzan <vingar...@gmail.com>
Committer: Dragos Vingarzan <dra...@neatpath.net>
Date: 2024-11-25T13:33:40+01:00

cdp: fixed issues discovered during static code analysis

This fixes:
- 4-bytes (typically uint32_t) used for time_t storage (Y2K38)
- print of time_t with %d instead of %ld
- reuse of same loop index variable in a sub-loop
- use of random(), when kam_rand() could theoretically be better
- copy-paste mistake in sp2/sp parameter, where sp2 was meant and sp is 
probably NULL

---

Modified: src/modules/cdp/authstatemachine.c
Modified: src/modules/cdp/common.c
Modified: src/modules/cdp/diameter_peer.c
Modified: src/modules/cdp/receiver.c
Modified: src/modules/cdp/session.c
Modified: src/modules/cdp/session.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/1ceeba7364b745b6ca2840e830d006a37460d10e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1ceeba7364b745b6ca2840e830d006a37460d10e.patch

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to