TSG-13584: Firewall的安全日志依赖session record日志,修复TRAFFIC_SHAPING_PROFILE表是否生效字段编号定义错误,使用cppcheck进行代码检查
This commit is contained in:
@@ -35,7 +35,7 @@ static int is_gtp_tunnel(const struct streaminfo *a_stream)
|
||||
|
||||
static int get_gtp_teid(const struct streaminfo *a_stream, unsigned int *uplink, unsigned int *downlink)
|
||||
{
|
||||
const struct streaminfo *p=a_stream, *q=a_stream->pfather;
|
||||
const struct streaminfo *p=a_stream;
|
||||
|
||||
while(p)
|
||||
{
|
||||
@@ -47,8 +47,7 @@ static int get_gtp_teid(const struct streaminfo *a_stream, unsigned int *uplink,
|
||||
return 1;
|
||||
}
|
||||
|
||||
p=q;
|
||||
q=q->pfather;
|
||||
p=p->pfather;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user