osmo-mgw/src/libosmo-mgcp
Philipp Maier acc10353fe protocol: prevent unnecessary null pointer deref
The function setup_rtp_processing() in mgcp_protocol.c executes a
function pointer setup_rtp_processing_cb(). The function pointer
gets two struct mgcp_rtp_end pointers as parameter. To get those
parameters it has to dereference them from struct mgcp_conn_rtp
pointers. The variable conn_src is such a struct pointer and there
are conditions where this pointer may be NULL. The function at the
function pointer should get the conn pointers directly instead of
the dereferenced end (rtp) pointers. This also gives additional
flexibility to the implementation behind the function pointer,
which is not yet defined (the function pointer points always to
a stub function since we donot support transcoding yet.

- give conn pointers directly to setup_rtp_processing_cb() insed
  of dereferencing conn_src->end

Change-Id: Id46e9bfba88613387026639eb4957221cce6820a
Closes OS#3406
2018-07-19 18:15:23 +02:00
..
Makefile.am mgw: clean up codec negotiation (sdp) 2018-06-23 11:39:44 +00:00
g711common.h create libosmo-mgcp and osmo-mgw by copying legacy code 2017-10-05 01:40:43 +00:00
mgcp_codec.c mgw: clean up codec negotiation (sdp) 2018-06-23 11:39:44 +00:00
mgcp_conn.c stats: replace packet statistic counters with libosmocore rate counters 2018-07-05 15:55:19 +02:00
mgcp_endp.c mgcp: fix use-after-free and add callback for endpoint cleanup 2018-02-06 08:21:24 +00:00
mgcp_msg.c protocol: fix tagging of wildcarded requests 2018-02-05 10:32:42 +01:00
mgcp_network.c protocol: prevent unnecessary null pointer deref 2018-07-19 18:15:23 +02:00
mgcp_osmux.c stats: replace packet statistic counters with libosmocore rate counters 2018-07-05 15:55:19 +02:00
mgcp_protocol.c protocol: prevent unnecessary null pointer deref 2018-07-19 18:15:23 +02:00
mgcp_sdp.c mgw: clean up codec negotiation (sdp) 2018-06-23 11:39:44 +00:00
mgcp_stat.c stat+vty: fix printing of rate counter values 2018-07-09 17:24:55 +02:00
mgcp_vty.c stat+vty: fix printing of rate counter values 2018-07-09 17:24:55 +02:00