Date: Sat, 21 Jan 2006 16:28:02 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90105 for review Message-ID: <200601211628.k0LGS2XU090216@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90105 Change 90105 by rwatson@rwatson_sesame on 2006/01/21 16:27:16 When load_event_table() fails, cause the entire lookup to fail up front. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_mask.c#9 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_mask.c#9 (text+ko) ==== @@ -165,7 +165,10 @@ switch (flag) { case AU_PRS_REREAD: flush_cache(); - load_event_table(); + if (load_event_table() == -1) { + pthread_mutex_unlock(&mutex); + return (-1); + } ev = read_from_cache(event); break; case AU_PRS_USECACHE:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601211628.k0LGS2XU090216>