PERFORCE change 139896 for review

Christian S.J. Peron csjp at FreeBSD.org
Sat Apr 12 15:25:52 UTC 2008


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

Change 139896 by csjp at ibm01 on 2008/04/12 15:25:42

	Assert that the handler is not NULL

Affected files ...

.. //depot/projects/trustedbsd/netauditd/writer.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/netauditd/writer.c#3 (text+ko) ====

@@ -102,6 +102,7 @@
 		(void) pthread_mutex_lock(&ac->ac_q.qp_lock);
 		if (ac->ac_q.qp_hold != NULL) {
 			(void) pthread_mutex_unlock(&ac->ac_q.qp_lock);
+			assert(ac->ac_write_func != NULL);
 			ret = ac->ac_write_func(ac);
 			if (ret == 1)	/* Queue has been drained */
 				writer_q_drained(ac);


More information about the p4-projects mailing list