From 5ccd2f54256e7932ed06d035aff208cd50f526eb Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 5 Dec 2021 12:26:28 +0000 Subject: fix unintended sizeof pointer ok claudio@ --- usr.sbin/rpki-client/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/rpki-client') diff --git a/usr.sbin/rpki-client/io.c b/usr.sbin/rpki-client/io.c index 958aa259afd..78c6b7de6d9 100644 --- a/usr.sbin/rpki-client/io.c +++ b/usr.sbin/rpki-client/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.17 2021/10/24 16:59:14 claudio Exp $ */ +/* $OpenBSD: io.c,v 1.18 2021/12/05 12:26:27 jsg Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -142,7 +142,7 @@ void io_read_buf_alloc(struct ibuf *b, void **res, size_t *sz) { *res = NULL; - io_read_buf(b, sz, sizeof(sz)); + io_read_buf(b, sz, sizeof(*sz)); if (*sz == 0) return; if ((*res = malloc(*sz)) == NULL) -- cgit v1.2.3