diff options
author | florian | 2013-10-18 14:43:21 +0000 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-05-24 12:33:55 +0200 |
commit | f0599944151616470d0a830a3f63ef12783bbb8e (patch) | |
tree | b7c913b61ae1da18591bf3cb728bb36492c8b064 | |
parent | 0bbc81788f09d70eec5f9038b4387eda225ee0cc (diff) | |
download | slowcgi-f0599944151616470d0a830a3f63ef12783bbb8e.tar.gz |
Calculate correct pointer for end_request; while there initialize reserved to zero. OK blambert
Diffstat (limited to '')
-rw-r--r-- | slowcgi.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.12 2013/10/18 14:42:18 florian Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.13 2013/10/18 14:43:21 florian Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> * Copyright (c) 2013 Florian Obser <florian@openbsd.org> @@ -840,10 +840,13 @@ create_end_record(struct request *c) fcgi_end_request_body)); header->padding_len = 0; header->reserved = 0; - end_request = (struct fcgi_end_request_body *) resp->data + - sizeof(struct fcgi_record_header); + end_request = (struct fcgi_end_request_body *) (resp->data + + sizeof(struct fcgi_record_header)); end_request->app_status = htonl(c->script_status); end_request->protocol_status = FCGI_REQUEST_COMPLETE; + end_request->reserved[0] = 0; + end_request->reserved[1] = 0; + end_request->reserved[2] = 0; resp->data_pos = 0; resp->data_len = sizeof(struct fcgi_end_request_body) + sizeof(struct fcgi_record_header); |