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@8845 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -43,7 +43,7 @@ gss_address_to_krb5addr(OM_uint32 gss_addr_type,
|
|||||||
{
|
{
|
||||||
int addr_type;
|
int addr_type;
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
int sa_len = sizeof(sa);
|
int sa_size = sizeof(sa);
|
||||||
krb5_error_code problem;
|
krb5_error_code problem;
|
||||||
|
|
||||||
if (gss_addr == NULL)
|
if (gss_addr == NULL)
|
||||||
@@ -64,7 +64,7 @@ gss_address_to_krb5addr(OM_uint32 gss_addr_type,
|
|||||||
problem = krb5_h_addr2sockaddr (addr_type,
|
problem = krb5_h_addr2sockaddr (addr_type,
|
||||||
gss_addr->value,
|
gss_addr->value,
|
||||||
&sa,
|
&sa,
|
||||||
&sa_len,
|
&sa_size,
|
||||||
port);
|
port);
|
||||||
if (problem)
|
if (problem)
|
||||||
return GSS_S_FAILURE;
|
return GSS_S_FAILURE;
|
||||||
|
@@ -43,7 +43,7 @@ gss_address_to_krb5addr(OM_uint32 gss_addr_type,
|
|||||||
{
|
{
|
||||||
int addr_type;
|
int addr_type;
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
int sa_len = sizeof(sa);
|
int sa_size = sizeof(sa);
|
||||||
krb5_error_code problem;
|
krb5_error_code problem;
|
||||||
|
|
||||||
if (gss_addr == NULL)
|
if (gss_addr == NULL)
|
||||||
@@ -64,7 +64,7 @@ gss_address_to_krb5addr(OM_uint32 gss_addr_type,
|
|||||||
problem = krb5_h_addr2sockaddr (addr_type,
|
problem = krb5_h_addr2sockaddr (addr_type,
|
||||||
gss_addr->value,
|
gss_addr->value,
|
||||||
&sa,
|
&sa,
|
||||||
&sa_len,
|
&sa_size,
|
||||||
port);
|
port);
|
||||||
if (problem)
|
if (problem)
|
||||||
return GSS_S_FAILURE;
|
return GSS_S_FAILURE;
|
||||||
|
Reference in New Issue
Block a user