|
Lines 93-105
static OM_uint32
Link Here
|
| 93 |
ssh_gssapi_acquire_cred(Gssctxt *ctx) |
93 |
ssh_gssapi_acquire_cred(Gssctxt *ctx) |
| 94 |
{ |
94 |
{ |
| 95 |
OM_uint32 status; |
95 |
OM_uint32 status; |
| 96 |
char lname[MAXHOSTNAMELEN]; |
96 |
char lname[NI_MAXHOST]; |
| 97 |
gss_OID_set oidset; |
97 |
gss_OID_set oidset; |
| 98 |
|
98 |
|
| 99 |
gss_create_empty_oid_set(&status, &oidset); |
99 |
gss_create_empty_oid_set(&status, &oidset); |
| 100 |
gss_add_oid_set_member(&status, ctx->oid, &oidset); |
100 |
gss_add_oid_set_member(&status, ctx->oid, &oidset); |
| 101 |
|
101 |
|
| 102 |
if (gethostname(lname, MAXHOSTNAMELEN)) { |
102 |
if (gethostname(lname, sizeof(lname))) { |
| 103 |
gss_release_oid_set(&status, &oidset); |
103 |
gss_release_oid_set(&status, &oidset); |
| 104 |
return (-1); |
104 |
return (-1); |
| 105 |
} |
105 |
} |