remove SA_LEN. thanks Etsushi Kato.
This commit is contained in:
parent
002d7ea556
commit
7f21c24357
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ main(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
memcpy(&listen_addrs_ptr->sa, sa, SA_LEN(sa));
|
||||
memcpy(&listen_addrs_ptr->sa, sa, salen);
|
||||
listen_addrs_ptr->fd = listen_sock;
|
||||
TAILQ_INSERT_TAIL(&listen_addrs, listen_addrs_ptr, entry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue