Commit f49abc96 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix tcp socket creation

parent 5aa22d39
......@@ -75,7 +75,7 @@ int stream_channel_connect(belle_sip_channel_t *obj, const struct addrinfo *ai){
belle_sip_fd_t sock;
sock=socket(ai->ai_family, SOCK_STREAM, ai->ai_protocol);
sock=socket(ai->ai_family, SOCK_STREAM, IPPROTO_TCP);
if (sock==-1){
belle_sip_error("Could not create socket: %s",belle_sip_get_socket_error_string());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment