svn rev #22063: tools/gssmonger/trunk/gssmaster/

raeburn@MIT.EDU raeburn at MIT.EDU
Mon Mar 2 16:07:00 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22063
Commit By: raeburn
Log Message:
Don't crash if finishblock is explicitly passed a NULL pointer.


Changed Files:
U   tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp
Modified: tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp
===================================================================
--- tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp	2009-02-27 18:58:37 UTC (rev 22062)
+++ tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp	2009-03-02 21:07:00 UTC (rev 22063)
@@ -268,7 +268,7 @@
 // Close the specified log4cpp log
 EZLOGAPI ezFinishBlock( IN OPTIONAL HANDLE handle ) {
     ezLogMsg(EZLOG_BLOCK, EZ_DEFAULT, "FinishBlock %p(%s)", handle,
-	     ((CatStack *)handle)->cat->getName().data());
+	     (handle ? ((CatStack *)handle)->cat->getName().data() : "NULL"));
     CatStack *c2 = cats;
     cats = c2->parent;
     delete c2;




More information about the cvs-krb5 mailing list