Mercurial > pidgin
comparison src/core.c @ 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 | b188b93ebf48 |
children | 4b04ecb3eb97 |
comparison
equal
deleted
inserted
replaced
4072:226f6871643c | 4073:405340263d75 |
---|---|
415 } | 415 } |
416 | 416 |
417 static gboolean socket_readable(GIOChannel *source, GIOCondition cond, gpointer data) | 417 static gboolean socket_readable(GIOChannel *source, GIOCondition cond, gpointer data) |
418 { | 418 { |
419 struct sockaddr_un saddr; | 419 struct sockaddr_un saddr; |
420 gint len; | 420 gint len = sizeof(saddr); |
421 gint fd; | 421 gint fd; |
422 | 422 |
423 struct UI *ui; | 423 struct UI *ui; |
424 | 424 |
425 if ((fd = accept(UI_fd, (struct sockaddr *)&saddr, &len)) == -1) | 425 if ((fd = accept(UI_fd, (struct sockaddr *)&saddr, &len)) == -1) |