changeset 4073:405340263d75

[gaim-migrate @ 4287] Also from David Kaelbling: Building gaim/0.59.6 on SGI IRIX 6.5, I found that the accept call in core.c'socket_readable was passing uninitialized memory around. The man page says: ... The addrlen is a value-result parameter. It should initially contain the amount of space pointed to by addr; on return it will contain the actual length (in bytes) of the address returned. If addr is zero, addrlen is ignored. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 14 Dec 2002 03:06:34 +0000
parents 226f6871643c
children 3ccbdf8e7f8d
files src/core.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core.c	Sat Dec 14 02:27:15 2002 +0000
+++ b/src/core.c	Sat Dec 14 03:06:34 2002 +0000
@@ -417,7 +417,7 @@
 static gboolean socket_readable(GIOChannel *source, GIOCondition cond, gpointer data)
 {
 	struct sockaddr_un saddr;
-	gint len;
+	gint len = sizeof(saddr);
 	gint fd;
 
 	struct UI *ui;