diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-09-01 12:28:12 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-09-01 12:28:12 +0000 |
commit | deb730e07339d16195c6ca0ea5023ea59e38ca91 (patch) | |
tree | ea4d367f9490bbc2687061e6e23f12b02f565034 /usr.sbin/httpd | |
parent | aa7d972e080578a3fad9cdd960ed7cc41d3e2ce7 (diff) |
Don't pass the local buffer array by reference.
OK florian@
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/server_fcgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/httpd/server_fcgi.c b/usr.sbin/httpd/server_fcgi.c index c4d56c3c7de..e4771b9af31 100644 --- a/usr.sbin/httpd/server_fcgi.c +++ b/usr.sbin/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.36 2014/09/01 09:32:43 reyk Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.37 2014/09/01 12:28:11 reyk Exp $ */ /* * Copyright (c) 2014 Florian Obser <florian@openbsd.org> @@ -454,9 +454,9 @@ server_fcgi_read(struct bufferevent *bev, void *arg) char *ptr; do { - len = bufferevent_read(bev, &buf, clt->clt_fcgi_toread); + len = bufferevent_read(bev, buf, clt->clt_fcgi_toread); /* XXX error handling */ - evbuffer_add(clt->clt_srvevb, &buf, len); + evbuffer_add(clt->clt_srvevb, buf, len); clt->clt_fcgi_toread -= len; DPRINTF("%s: len: %lu toread: %d state: %d", __func__, len, clt->clt_fcgi_toread, clt->clt_fcgi_state); |