From bff7a3879a99da11806d5b1f163621cedfe2e09f Mon Sep 17 00:00:00 2001 From: otto Date: Sat, 25 Mar 2023 19:16:34 +0000 Subject: [PATCH] Last arg is also a pointer, so pass NULL instead of 0; ok deraadt@ --- lib/libc/net/recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/net/recv.c b/lib/libc/net/recv.c index 365d0e2e193..1488ca26bd1 100644 --- a/lib/libc/net/recv.c +++ b/lib/libc/net/recv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: recv.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ +/* $OpenBSD: recv.c,v 1.7 2023/03/25 19:16:34 otto Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +36,6 @@ ssize_t recv(int s, void *buf, size_t len, int flags) { - return (recvfrom(s, buf, len, flags, NULL, 0)); + return (recvfrom(s, buf, len, flags, NULL, NULL)); } DEF_WEAK(recv); -- 2.20.1