[Sumover-dev] [svn commit] r4555 - common/trunk/src
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Fri Jan 8 12:42:22 GMT 2010
Author: piers
Date: Fri Jan 8 12:42:22 2010
New Revision: 4555
Modified:
common/trunk/src/net_udp.c
common/trunk/src/rtp.c
Log:
Fixed
Modified: common/trunk/src/net_udp.c
==============================================================================
--- common/trunk/src/net_udp.c (original)
+++ common/trunk/src/net_udp.c Fri Jan 8 12:42:22 2010
@@ -460,7 +460,7 @@
}
hent = gethostbyname(hname);
if (hent == NULL) {
- debug_msg("Failed to lookup current hostname: %s\n", addr);
+ debug_msg("Failed to lookup current hostname: %s\n", hname);
socket_error("Can't resolve IP address for %s", hname);
return NULL;
}
Modified: common/trunk/src/rtp.c
==============================================================================
--- common/trunk/src/rtp.c (original)
+++ common/trunk/src/rtp.c Fri Jan 8 12:42:22 2010
@@ -1052,9 +1052,9 @@
session->rx_port = rx_port;
session->tx_port = tx_port;
session->ttl = min(ttl, 255);
- if (!session->rtp_socket= udp_init_if(addr, iface, rx_port, tx_port, ttl))
+ if (!(session->rtp_socket= udp_init_if(addr, iface, rx_port, tx_port, ttl)))
return NULL;
- if(!session->rtcp_socket= udp_init_if(addr, iface, (uint16_t) (rx_port+1), (uint16_t) (tx_port+1), ttl))
+ if(!(session->rtcp_socket= udp_init_if(addr, iface, (uint16_t) (rx_port+1), (uint16_t) (tx_port+1), ttl)))
return NULL;
init_opt(session);
More information about the Sumover-dev
mailing list