You need to sign in or sign up before continuing.
提交 b99baa43 编写于 作者: D Dominique Martinet 提交者: Eric Van Hensbergen

net/9p: Initialize opts->privport as it should be.

We're currently using an uninitialized value if option privport is not set,
thus (almost) always using a privileged port.
Signed-off-by: NDominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
上级 179a5bc4
...@@ -734,6 +734,7 @@ static int parse_opts(char *params, struct p9_fd_opts *opts) ...@@ -734,6 +734,7 @@ static int parse_opts(char *params, struct p9_fd_opts *opts)
opts->port = P9_PORT; opts->port = P9_PORT;
opts->rfd = ~0; opts->rfd = ~0;
opts->wfd = ~0; opts->wfd = ~0;
opts->privport = 0;
if (!params) if (!params)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册