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

@@ -135,10 +135,10 @@ main(int argc, char **argv)
{
int fd = 0;
struct sockaddr sa;
size_t sa_len;
size_t sa_size;
krb5_auth_context ac = NULL;
int debug_port;
sa_len = sizeof(sa);
sa_size = sizeof(sa);
if(debug_flag) {
if(port_str == NULL)
debug_port = krb5_getportbyname (context, "kerberos-adm",
@@ -146,7 +146,7 @@ main(int argc, char **argv)
else
debug_port = htons(atoi(port_str));
mini_inetd(debug_port);
} else if(getsockname(STDIN_FILENO, &sa, &sa_len) < 0 &&
} else if(getsockname(STDIN_FILENO, &sa, &sa_size) < 0 &&
errno == ENOTSOCK) {
parse_ports(context, port_str ? port_str : "+");
start_server(context);