diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-09-26 16:55:22 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-09-26 16:55:22 +0000 |
commit | 36d505fc2640685c8a23a3dd419712eb1dcbe270 (patch) | |
tree | 59f80f7ed7e74157a9bed998d1a6f3d9c9358dce /sbin/iked | |
parent | 43dcae029b3d1cba3f171704896c501ff93043f5 (diff) |
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@
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/util.c b/sbin/iked/util.c index be2c46ba9d9..e7804459e81 100644 --- a/sbin/iked/util.c +++ b/sbin/iked/util.c @@ -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; |