diff options
| author | Aymeric Moizard <amoizard@gmail.com> | 2015-01-05 12:04:08 +0100 |
|---|---|---|
| committer | Aymeric Moizard <amoizard@gmail.com> | 2015-01-05 12:04:08 +0100 |
| commit | 87fc7f43ea47fc83f02ac6aacd544efba4eb8399 (patch) | |
| tree | e31f8f3a034b37ae6cdc2c832f710fc72a4e4c18 | |
| parent | cc2a32d64d0eca32dfba0e612f5e9c93105641d3 (diff) | |
| download | exosip-87fc7f43ea47fc83f02ac6aacd544efba4eb8399.tar.gz | |
wrap-around for jpipe
| -rw-r--r-- | src/jpipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jpipe.c b/src/jpipe.c index e64a8f6..cbd5c06 100644 --- a/src/jpipe.c +++ b/src/jpipe.c @@ -161,6 +161,8 @@ jpipe () j = 50; while (aport++ && j-- > 0) { + if (aport>65500) + aport = 10500; raddr.sin_port = htons ((short) aport); if (bind (s, (struct sockaddr *) &raddr, sizeof (raddr)) < 0) { OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_WARNING, NULL, "Failed to bind one local socket %i!\n", aport)); |
