git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5437 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -74,11 +74,11 @@ int sctp_set_init_opt(int sd, uint16_t instreams, uint16_t outstreams,
|
||||
}
|
||||
|
||||
/* Allow socket reuse */
|
||||
if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
|
||||
if (setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
|
||||
SCTP_ERROR("setsockopt SO_REUSEADDR failed (%d:%s)\n", errno, strerror(errno));
|
||||
close(sd);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user