[PATCH]: unreachable code block in auditd-sendmail.c

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Nov 8 21:59:38 UTC 2005


On Tue, 08 Nov 2005 15:49:02 CST, Dustin Kirkland said:

>  		fd = safe_popen(&pid, mail_acct);
> -		if (fd < 0)
> -			return 1;
> -		mail = fdopen(fd, "w");
>  		if (fd < 0) {

Alternatively, is it possible the second 'if' should have read
'if (mail < 0) {' to check the return code from the fdopen()?

Your patch doesn't check for an fdopen() failure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20051108/9c1d952b/attachment.sig>


More information about the Linux-audit mailing list