summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-12-13 17:26:54 +0800
committeryangwei <[email protected]>2023-12-13 17:26:54 +0800
commit37117f9f350c0c7b624b8f74f0b03cb8ee20be72 (patch)
tree0a6393667e13c38f00d9b33d2989d0f6ceaf2784
parent08400abb1348e06a28dd49b7c77c794f6446c84a (diff)
🐞 fix(session_is_outer_tunnel): added argument checksv1.0.6
-rw-r--r--src/adapter/adapter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adapter/adapter.c b/src/adapter/adapter.c
index 9b79417..603e62b 100644
--- a/src/adapter/adapter.c
+++ b/src/adapter/adapter.c
@@ -382,7 +382,7 @@ int session_is_outer_tunnel(struct session *sess, uint64_t *flag)
t_stream = t_stream->pfather;
}
MESA_get_stream_opt(a_stream, MSO_STREAM_TUNNEL_TYPE, (void *)&tunnel_type, &tunnel_type_len);
- *flag = (uint64_t)tunnel_type;
+ if(flag)*flag = (uint64_t)tunnel_type;
return 0;
}