Re: [PATCH 3/4] pam_tty_audit: Make coverity happy with msg_flags initialization.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On St, 2014-08-13 at 14:27 +0200, Robin Hack wrote:
> ---
>  modules/pam_tty_audit/pam_tty_audit.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/modules/pam_tty_audit/pam_tty_audit.c b/modules/pam_tty_audit/pam_tty_audit.c
> index b6f53be..6003f4e 100644
> --- a/modules/pam_tty_audit/pam_tty_audit.c
> +++ b/modules/pam_tty_audit/pam_tty_audit.c
> @@ -120,6 +120,7 @@ nl_recv (int fd, unsigned type, void *buf, size_t size)
>    msg.msg_iovlen = 1;
>    msg.msg_control = NULL;
>    msg.msg_controllen = 0;
> +  msg.msg_flags = 0;
>    if (type != NLMSG_ERROR)
>      {
>        res = recvmsg (fd, &msg, MSG_PEEK);

OK, committed, although this is really just to silence Coverity and not
a real uninitialized use.
-- 
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
(You'll never know whether the road is wrong though.)


_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list




[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux