diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2013-10-18 14:44:37 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2013-10-18 14:44:37 +0000 |
commit | 45f2836d4af968b318970e568fc4d07110063667 (patch) | |
tree | 1c03cde1c8644645a0552eb26fbfda48a6cd28cc /usr.sbin | |
parent | e0d32b61de2148fb98df38d72d772b1b793dcc94 (diff) |
Calculate correct pointer for fcgi_{begin,end}_request_body.
input / OK blambert
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/slowcgi/slowcgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c index a5128d484bd..2c5d7678cb3 100644 --- a/usr.sbin/slowcgi/slowcgi.c +++ b/usr.sbin/slowcgi/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 |