-/* $OpenBSD: relay.c,v 1.256 2023/06/06 15:16:52 beck Exp $ */
+/* $OpenBSD: relay.c,v 1.257 2023/09/03 10:22:03 nicm Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
struct evbuffer *buf, size_t size)
{
int ret;
- ret = relay_bufferevent_write(cre, buf->buffer, size);
+ ret = relay_bufferevent_write(cre, EVBUFFER_DATA(buf), size);
if (ret != -1)
evbuffer_drain(buf, size);
return (ret);