Merge "ipc: add validity check to APR port"
This commit is contained in:
commit
f8ee2d26bf
1 changed files with 4 additions and 3 deletions
|
@ -717,9 +717,10 @@ void apr_cb_func(void *buf, int len, void *priv)
|
|||
}
|
||||
|
||||
temp_port = ((data.dest_port >> 8) * 8) + (data.dest_port & 0xFF);
|
||||
pr_debug("port = %d t_port = %d\n", data.src_port, temp_port);
|
||||
if (c_svc->port_cnt && c_svc->port_fn[temp_port])
|
||||
c_svc->port_fn[temp_port](&data, c_svc->port_priv[temp_port]);
|
||||
if (((temp_port >= 0) && (temp_port < APR_MAX_PORTS))
|
||||
&& (c_svc->port_cnt && c_svc->port_fn[temp_port]))
|
||||
c_svc->port_fn[temp_port](&data,
|
||||
c_svc->port_priv[temp_port]);
|
||||
else if (c_svc->fn)
|
||||
c_svc->fn(&data, c_svc->priv);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue