From f977c33486a3ba4b82ef4861c589466fc5cf190a Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 3 Jul 2023 09:38:09 +0000 Subject: Use ibuf_data() instead of accessing ibuf->buf directly. OK tb@ --- usr.sbin/relayd/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/relayd/parse.y') diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index 22beb857229..a1250de51aa 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.253 2021/10/15 15:01:28 naddy Exp $ */ +/* $OpenBSD: parse.y,v 1.254 2023/07/03 09:38:08 claudio Exp $ */ /* * Copyright (c) 2007 - 2014 Reyk Floeter @@ -996,7 +996,7 @@ tablecheck : ICMP { table->conf.check = CHECK_ICMP; } free($5); YYERROR; } - memcpy(table->conf.exbinbuf, ibuf->buf, + memcpy(table->conf.exbinbuf, ibuf_data(ibuf), ibuf_size(ibuf)); ibuf_free(ibuf); free($5); -- cgit v1.2.3