PERFORCE change 89768 for review

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


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

Change 89768 by rwatson at rwatson_peppercorn on 2006/01/16 00:14:19

	When aborting audit_write_failure_self() due to trying
	circumstances, make sure to release the subject token rather
	than leaking it.
	
	Found by:	Coverity Prevent (tm)

Affected files ...

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

Differences ...

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

@@ -265,6 +265,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