1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Fix a few more sockaddr -> sockaddr_storgage.

Jeremy.
(This used to be commit 4b3635d6bc1bd5e4135ef208dff052e1d9b58a12)
This commit is contained in:
Jeremy Allison 2007-10-26 16:02:16 -07:00
parent cd648750e0
commit 7cbfaa31d8

View File

@ -199,15 +199,15 @@ static void start_filter(char *desthost)
while (1) {
fd_set fds;
int num;
struct sockaddr addr;
socklen_t in_addrlen = sizeof(addr);
struct sockaddr_storage ss;
socklen_t in_addrlen = sizeof(ss);
FD_ZERO(&fds);
FD_SET(s, &fds);
num = sys_select_intr(s+1,&fds,NULL,NULL,NULL);
if (num > 0) {
c = accept(s, &addr, &in_addrlen);
c = accept(s, (struct sockaddr *)&ss, &in_addrlen);
if (c != -1) {
if (fork() == 0) {
close(s);