blob: b0b8c0315d67f1dfd667a0ed975bcd9abc0603fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$FreeBSD$
--- daemon/gdm-net.c.orig Sun Aug 26 04:56:37 2001
+++ daemon/gdm-net.c Tue Oct 16 09:35:36 2001
@@ -238,11 +243,11 @@
return NULL;
}
+ bzero(&addr, sizeof(addr));
strcpy (addr.sun_path, sockname);
addr.sun_family = AF_UNIX;
if (bind (fd,
- (struct sockaddr *) &addr, strlen (addr.sun_path) +
- sizeof (addr.sun_family)) < 0) {
+ (struct sockaddr *) &addr, sizeof(addr)) < 0) {
gdm_error (_("%s: Could not bind socket"),
"gdm_connection_open_unix");
close (fd);
|