Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2008 15:25:51 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 139896 for review
Message-ID:  <200804121525.m3CFPp49078473@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=139896

Change 139896 by csjp@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804121525.m3CFPp49078473>