foo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@736 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -172,7 +172,7 @@ create_and_write_cookie (char *xauthfile,
|
|||||||
auth.name = COOKIE_TYPE;
|
auth.name = COOKIE_TYPE;
|
||||||
auth.name_length = strlen(auth.name);
|
auth.name_length = strlen(auth.name);
|
||||||
auth.data_length = sz;
|
auth.data_length = sz;
|
||||||
auth.data = cookie;
|
auth.data = (char*)cookie;
|
||||||
des_rand_data (cookie, sz);
|
des_rand_data (cookie, sz);
|
||||||
cookie_len = sz;
|
cookie_len = sz;
|
||||||
|
|
||||||
@@ -194,6 +194,7 @@ doit(int sock)
|
|||||||
des_key_schedule schedule;
|
des_key_schedule schedule;
|
||||||
des_cblock key;
|
des_cblock key;
|
||||||
int localx;
|
int localx;
|
||||||
|
u_int32_t tmp;
|
||||||
|
|
||||||
if (recv_conn (sock, &key, schedule, &thataddr))
|
if (recv_conn (sock, &key, schedule, &thataddr))
|
||||||
return 1;
|
return 1;
|
||||||
@@ -203,9 +204,8 @@ doit(int sock)
|
|||||||
localx = get_local_xsocket (&display_num);
|
localx = get_local_xsocket (&display_num);
|
||||||
if (localx < 0)
|
if (localx < 0)
|
||||||
return 1;
|
return 1;
|
||||||
display_num = htonl(display_num);
|
tmp = htonl(display_num);
|
||||||
if (write (sock, &display_num, sizeof(display_num)) !=
|
if (write (sock, &tmp, sizeof(tmp)) != sizeof(tmp))
|
||||||
sizeof(display_num))
|
|
||||||
return 1;
|
return 1;
|
||||||
strncpy(xauthfile, tempnam("/tmp", NULL), sizeof(xauthfile));
|
strncpy(xauthfile, tempnam("/tmp", NULL), sizeof(xauthfile));
|
||||||
if (write (sock, xauthfile, sizeof(xauthfile)) !=
|
if (write (sock, xauthfile, sizeof(xauthfile)) !=
|
||||||
|
Reference in New Issue
Block a user