diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-12-05 12:26:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-12-05 12:26:28 +0000 |
commit | 5ccd2f54256e7932ed06d035aff208cd50f526eb (patch) | |
tree | a9d3864d491fde5d6aa9dd72ee019ae7a68853d1 /usr.sbin/rpki-client | |
parent | 2f81538faa48904097f791e946b459f520345530 (diff) |
fix unintended sizeof pointer
ok claudio@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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) |