use sa_size instead of sa_len, some systems define this to emulate

anonymous unions


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8847 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-07-27 05:22:14 +00:00
parent 218d67778e
commit 4e5af56545
2 changed files with 5 additions and 5 deletions

View File

@@ -124,13 +124,13 @@ spawn_child(krb5_context context, int *socks, int num_socks, int this_sock)
{
int e, i;
struct sockaddr sa;
size_t sa_len;
size_t sa_size;
int s;
pid_t pid;
krb5_address addr;
char buf[128];
size_t buf_len;
s = accept(socks[this_sock], &sa, &sa_len);
s = accept(socks[this_sock], &sa, &sa_size);
if(s < 0) {
krb5_warn(context, errno, "accept");
return 1;