Don't ignore the "flags" argument passed to recvfromto. Doesn't matter
for now in iked (0 is passed), but this kind of code tends to be copied.
ok?
Index: util.c
===================================================================
RCS file: /cvs/src/sbin/iked/util.c,v
retrieving revision 1.31
diff -u -p -p -u -r1.31 util.c
--- util.c 4 Sep 2016 10:26:02 -0000 1.31
+++ util.c 26 Sep 2016 16:32:56 -0000
@@ -366,7 +366,7 @@ recvfromto(int s, void *buf, size_t len,
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;
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE