summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-11-20 13:35:34 +0800
committeryangwei <[email protected]>2023-11-20 13:35:34 +0800
commit10b3243ab52be7884dfc33012f5a6649c0a5d899 (patch)
treeaf79dc464996caad3867073ed7050356300ab07a
parent950e828f70524039ebda7bdaa4d35a2e602e405e (diff)
🐞 fix(Fix-get-route-ctx-len-error): 修复获取ROUTE_CTX,长度返回错误的bugv4.3.34
-rw-r--r--src/dealpkt/plug_support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dealpkt/plug_support.c b/src/dealpkt/plug_support.c
index 592903a..b699822 100644
--- a/src/dealpkt/plug_support.c
+++ b/src/dealpkt/plug_support.c
@@ -1877,8 +1877,8 @@ int MESA_get_stream_opt(const struct streaminfo *pstream, enum MESA_stream_opt o
if (pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN])
{
*value = (void *)pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN]->data;
- *opt_val_len = sizeof(pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN]->sz_data);
- ret = 0;
+ *opt_val_len = (pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN]->sz_data);
+ ret = (pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN]->sz_data);
}
break;
}
@@ -1890,8 +1890,8 @@ int MESA_get_stream_opt(const struct streaminfo *pstream, enum MESA_stream_opt o
if (pstream_pr->polling_inject_context->meta[DIR_ROUTE_UP])
{
*value = (void *)pstream_pr->polling_inject_context->meta[DIR_ROUTE_UP]->data;
- *opt_val_len = sizeof(pstream_pr->polling_inject_context->meta[DIR_ROUTE_UP]->sz_data);
- ret = 0;
+ *opt_val_len = (pstream_pr->polling_inject_context->meta[DIR_ROUTE_UP]->sz_data);
+ ret = (pstream_pr->polling_inject_context->meta[DIR_ROUTE_DOWN]->sz_data);
}
break;
}