View | Details | Raw Unified | Return to bug 134010
Collapse All | Expand All

(-)gss_impl.c (-4 / +4 lines)
Lines 89-108 Link Here
89
{
89
{
90
        struct sockaddr_un sun;
90
        struct sockaddr_un sun;
91
        struct netconfig *nconf;
91
        struct netconfig *nconf;
92
	char path[MAXPATHLEN];
92
	char path[sizeof(sun.sun_path)];
93
	int error;
93
	int error;
94
        
94
        
95
	error = priv_check(td, PRIV_NFS_DAEMON);
95
	error = priv_check(td, PRIV_NFS_DAEMON);
96
	if (error)
96
	if (error)
97
		return (error);
97
		return (error);
98
98
99
	if (kgss_gssd_handle)
100
		CLNT_DESTROY(kgss_gssd_handle);
101
102
	error = copyinstr(uap->path, path, sizeof(path), NULL);
99
	error = copyinstr(uap->path, path, sizeof(path), NULL);
103
	if (error)
100
	if (error)
104
		return (error);
101
		return (error);
105
102
103
	if (kgss_gssd_handle)
104
		CLNT_DESTROY(kgss_gssd_handle);
105
106
        sun.sun_family = AF_LOCAL;
106
        sun.sun_family = AF_LOCAL;
107
        strcpy(sun.sun_path, path);
107
        strcpy(sun.sun_path, path);
108
        sun.sun_len = SUN_LEN(&sun);
108
        sun.sun_len = SUN_LEN(&sun);

Return to bug 134010