Module: kamailio
Branch: master
Commit: 1ceeba7364b745b6ca2840e830d006a37460d10e
URL:
https://github.com/kamailio/kamailio/commit/1ceeba7364b745b6ca2840e830d006a…
Author: Dragos Vingarzan <vingarzan(a)gmail.com>
Committer: Dragos Vingarzan <dragos(a)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/1ceeba7364b745b6ca2840e830d006a…
Patch:
https://github.com/kamailio/kamailio/commit/1ceeba7364b745b6ca2840e830d006a…