Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
ganglia-monitor-core
ganglia-monitor-core-2.5.7_r1960.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ganglia-monitor-core-2.5.7_r1960.patch of Package ganglia-monitor-core
Index: gmetad/server.c =================================================================== --- gmetad/server.c.orig 2009-05-13 18:13:51.000000000 +0200 +++ gmetad/server.c 2009-05-13 18:14:19.934353442 +0200 @@ -496,6 +496,9 @@ readline(int fd, char *buf, int maxlen) } *ptr = 0; + if ((stop == 0) && (nleft == 0)) /* Overflow */ + return -1; + return (maxlen - nleft); } @@ -506,6 +509,7 @@ server_thread (void *arg) { int interactive = (int) arg; int len; + int request_len; client_t client; char remote_ip[16]; char request[REQUESTLEN + 1]; @@ -559,8 +563,8 @@ server_thread (void *arg) if (interactive) { - len = readline(client.fd, request, REQUESTLEN); - if (len<0) + request_len = readline(client.fd, request, REQUESTLEN); + if (request_len < 0) { err_msg("server_thread() could not read request from %s", remote_ip); close(client.fd);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor