mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8320168: handle setsocktopt return values
Reviewed-by: lucy, alanb, vtewari
This commit is contained in:
parent
6c5e15c1a2
commit
db1d82347b
8 changed files with 53 additions and 15 deletions
|
@ -536,7 +536,9 @@ NET_SetSockOpt(int fd, int level, int opt, const void *arg,
|
|||
}
|
||||
|
||||
if (sotype == SOCK_DGRAM) {
|
||||
setsockopt(fd, level, SO_REUSEPORT, arg, len);
|
||||
if (setsockopt(fd, level, SO_REUSEPORT, arg, len) < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue