[PATCH 3/4] pam_tty_audit: Make coverity happy with msg_flags initialization.
Tomas Mraz
tmraz at redhat.com
Wed Aug 13 13:13:52 UTC 2014
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.)
More information about the Pam-list
mailing list