Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b99baa43 authored by Dominique Martinet's avatar Dominique Martinet Committed by Eric Van Hensbergen
Browse files

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: default avatarDominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 179a5bc4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -734,6 +734,7 @@ static int parse_opts(char *params, struct p9_fd_opts *opts)
	opts->port = P9_PORT;
	opts->rfd = ~0;
	opts->wfd = ~0;
	opts->privport = 0;

	if (!params)
		return 0;