diff options
author | florian | 2013-10-18 14:44:36 +0000 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-05-24 12:33:55 +0200 |
commit | 4fd1b141635cbb0db3d2f248d0508ec6920f6c8d (patch) | |
tree | d016f3ba6db9b9c91f915f5f8ca3b029dc140f51 /slowcgi.c | |
parent | f0599944151616470d0a830a3f63ef12783bbb8e (diff) | |
download | slowcgi-4fd1b141635cbb0db3d2f248d0508ec6920f6c8d.tar.gz |
Calculate correct pointer for fcgi_{begin,end}_request_body. input / OK blambert
Diffstat (limited to 'slowcgi.c')
-rw-r--r-- | slowcgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |