|
@@ -216,7 +216,7 @@ int init_tcpudp_sock(union sockaddr_union* sa_un, char* address, int port,
|
|
|
LOG(L_ERR, "ERROR: init_tcpudp_sock: set non blocking failed\n");
|
|
|
}
|
|
|
|
|
|
- if (bind(s, (struct sockaddr *)&su, sockaddru_len(su))==-1){
|
|
|
+ if (bind(s, &su.s, sockaddru_len(su))==-1){
|
|
|
LOG(L_ERR, "ERROR: init_tcpudp_sock: bind: %s [%d]\n",
|
|
|
strerror(errno), errno);
|
|
|
goto error;
|