On Mon, 26 Sep 2016 18:33:43 +0200
j...@wxcvbn.org (Jeremie Courreges-Anglas) wrote:

> 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?
> 

ok vgross@

> 
> 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;
> 

Reply via email to