diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-07-03 09:38:09 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-07-03 09:38:09 +0000 |
commit | f977c33486a3ba4b82ef4861c589466fc5cf190a (patch) | |
tree | b7f9db6fb8be931d3bcfa818413f03bb365d7778 /usr.sbin/relayd/parse.y | |
parent | 6e337358e477f85b882d4fdd3ebffea1a108ce7a (diff) |
Use ibuf_data() instead of accessing ibuf->buf directly.
OK tb@
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r-- | usr.sbin/relayd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
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 <reyk@openbsd.org> @@ -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); |