From d7c13c3f7c0a100f4886d9312b927330afb08627 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 3 Sep 2023 10:18:18 +0000 Subject: [PATCH] Use EVBUFFER_DATA instead of reaching into struct evbuffer. ok tb --- usr.sbin/httpd/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/httpd/server.c b/usr.sbin/httpd/server.c index 6999b08cfae..5eeabb6ffd6 100644 --- a/usr.sbin/httpd/server.c +++ b/usr.sbin/httpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.127 2023/07/12 12:37:27 tb Exp $ */ +/* $OpenBSD: server.c,v 1.128 2023/09/03 10:18:18 nicm Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter @@ -1461,7 +1461,7 @@ server_bufferevent_write_chunk(struct client *clt, struct evbuffer *buf, size_t size) { int ret; - ret = server_bufferevent_write(clt, buf->buffer, size); + ret = server_bufferevent_write(clt, EVBUFFER_DATA(buf), size); if (ret != -1) evbuffer_drain(buf, size); return (ret); -- 2.20.1