aboutsummaryrefslogtreecommitdiffstats
path: root/slowcgi.c
diff options
context:
space:
mode:
authorflorian2013-10-18 14:44:36 +0000
committerWynn Wolf Arbor2020-05-24 12:33:55 +0200
commit4fd1b141635cbb0db3d2f248d0508ec6920f6c8d (patch)
treed016f3ba6db9b9c91f915f5f8ca3b029dc140f51 /slowcgi.c
parentf0599944151616470d0a830a3f63ef12783bbb8e (diff)
downloadslowcgi-4fd1b141635cbb0db3d2f248d0508ec6920f6c8d.tar.gz
Calculate correct pointer for fcgi_{begin,end}_request_body. input / OK blambert
Diffstat (limited to 'slowcgi.c')
-rw-r--r--slowcgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/slowcgi.c b/slowcgi.c
index a5128d4..2c5d767 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slowcgi.c,v 1.13 2013/10/18 14:43:21 florian Exp $ */
+/* $OpenBSD: slowcgi.c,v 1.14 2013/10/18 14:44:36 florian Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
* Copyright (c) 2013 Florian Obser <florian@openbsd.org>
@@ -1012,10 +1012,10 @@ dump_fcgi_record(const char *p, struct fcgi_record_header *h)
if (h->type == FCGI_BEGIN_REQUEST)
dump_fcgi_begin_request_body(p,
- (struct fcgi_begin_request_body *)((char *)h) + sizeof(*h));
+ (struct fcgi_begin_request_body *)(h + 1));
else if (h->type == FCGI_END_REQUEST)
dump_fcgi_end_request_body(p,
- (struct fcgi_end_request_body *)((char *)h) + sizeof(*h));
+ (struct fcgi_end_request_body *)(h + 1));
}
void