mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Update.
2000-05-29 Jakub Jelinek <jakub@redhat.com> * inet/rcmd.c (rresvport_af): Use correct port number. 2000-05-26 Andreas Schwab <schwab@suse.de> * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to entries in all-sonames. ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol, preserving the old name if different for compatibility.
This commit is contained in:
@@ -340,11 +340,9 @@ rresvport_af(alport, family)
|
||||
ss.__ss_family = family;
|
||||
|
||||
for (;;) {
|
||||
*sport = htons(i);
|
||||
if (bind(s, (struct sockaddr *)&ss, len) >= 0){
|
||||
*alport = i;
|
||||
*sport = htons((uint16_t) *alport);
|
||||
if (bind(s, (struct sockaddr *)&ss, len) >= 0)
|
||||
return s;
|
||||
}
|
||||
if (errno != EADDRINUSE) {
|
||||
(void)__close(s);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user