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

Commit a454dace authored by Djalal Harouni's avatar Djalal Harouni Committed by David S. Miller
Browse files

ppp: fix pptp double release_sock in pptp_bind()

parent 43af940c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -423,10 +423,8 @@ static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr,
	lock_sock(sk);

	opt->src_addr = sp->sa_addr.pptp;
	if (add_chan(po)) {
		release_sock(sk);
	if (add_chan(po))
		error = -EBUSY;
	}

	release_sock(sk);
	return error;