]>
Commit | Line | Data |
---|---|---|
10679586 | 1 | # fixes CAN-2003-0464 |
2 | --- linux-2.4.20/net/sunrpc/svcsock.c.orig Fri Nov 29 00:53:16 2002 | |
3 | +++ linux-2.4.20/net/sunrpc/svcsock.c Tue Sep 9 15:42:19 2003 | |
4 | @@ -1229,7 +1229,8 @@ | |
5 | return error; | |
6 | ||
7 | if (sin != NULL) { | |
8 | - sock->sk->reuse = 1; /* allow address reuse */ | |
9 | + if (type == SOCK_STREAM) | |
10 | + sock->sk->reuse = 1; /* allow address reuse */ | |
11 | error = sock->ops->bind(sock, (struct sockaddr *) sin, | |
12 | sizeof(*sin)); | |
13 | if (error < 0) |