mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Pass the flags argument of recvfromto down to the underlying recvmsg
Doesn't matter in iked as recvfromto is only called with flags = 0, but this code tends to be copied. ok sthen@ florian@
This commit is contained in:
parent
785412490b
commit
d1a35d0a71
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: util.c,v 1.31 2016/09/04 10:26:02 vgross Exp $ */
|
||||
/* $OpenBSD: util.c,v 1.32 2016/09/26 16:55:21 jca Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
|
||||
@ -366,7 +366,7 @@ recvfromto(int s, void *buf, size_t len, int flags, struct sockaddr *from,
|
||||
msg.msg_control = &cmsgbuf.buf;
|
||||
msg.msg_controllen = sizeof(cmsgbuf.buf);
|
||||
|
||||
if ((ret = recvmsg(s, &msg, 0)) == -1)
|
||||
if ((ret = recvmsg(s, &msg, flags)) == -1)
|
||||
return (-1);
|
||||
|
||||
*fromlen = from->sa_len;
|
||||
|
Loading…
Reference in New Issue
Block a user