PERFORCE change 89769 for review

Robert Watson rwatson at FreeBSD.org
Mon Jan 16 00:16:20 GMT 2006


http://perforce.freebsd.org/chv.cgi?CH=89769

Change 89769 by rwatson at rwatson_peppercorn on 2006/01/16 00:15:42

	In audit_write_failure(), free the subject token if we are
	aborting generation of the audit record.
	
	Found by:	Coverity Prevent (tm)

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#11 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#11 (text+ko) ====

@@ -239,6 +239,7 @@
 
 	/* tokenize and save the error message */
 	if ((errtok = au_to_text(errmsg)) == NULL) {
+		au_free_token(subject);
 		syslog(LOG_ERR, "%s: au_to_text() failed", func);
 		return (kAUMakeTextTokErr);
 	}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list