View | Details | Raw Unified | Return to bug 2239 | Differences between
and this patch

Collapse All | Expand All

(-)gss-serv.c (-2 / +2 lines)
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
	}
(-)session.c (-1 / +2 lines)
Lines 45-50 Link Here
45
#include <fcntl.h>
45
#include <fcntl.h>
46
#include <grp.h>
46
#include <grp.h>
47
#include <login_cap.h>
47
#include <login_cap.h>
48
#include <netdb.h>
48
#include <paths.h>
49
#include <paths.h>
49
#include <pwd.h>
50
#include <pwd.h>
50
#include <signal.h>
51
#include <signal.h>
Lines 2260-2266 session_setup_x11fwd(Session *s) Link Here
2260
{
2261
{
2261
	struct stat st;
2262
	struct stat st;
2262
	char display[512], auth_display[512];
2263
	char display[512], auth_display[512];
2263
	char hostname[MAXHOSTNAMELEN];
2264
	char hostname[NI_MAXHOST];
2264
	u_int i;
2265
	u_int i;
2265
2266
2266
	if (no_x11_forwarding_flag) {
2267
	if (no_x11_forwarding_flag) {
(-)ssh-keygen.c (-1 / +2 lines)
Lines 22-27 Link Here
22
22
23
#include <errno.h>
23
#include <errno.h>
24
#include <fcntl.h>
24
#include <fcntl.h>
25
#include <netdb.h>
25
#include <pwd.h>
26
#include <pwd.h>
26
#include <stdio.h>
27
#include <stdio.h>
27
#include <stdlib.h>
28
#include <stdlib.h>
Lines 160-166 int rounds = 0; Link Here
160
/* argv0 */
161
/* argv0 */
161
extern char *__progname;
162
extern char *__progname;
162
163
163
char hostname[MAXHOSTNAMELEN];
164
char hostname[NI_MAXHOST];
164
165
165
/* moduli.c */
166
/* moduli.c */
166
int gen_candidates(FILE *, u_int32_t, u_int32_t, BIGNUM *);
167
int gen_candidates(FILE *, u_int32_t, u_int32_t, BIGNUM *);

Return to bug 2239