DEVEL15-windows-afsd-notification-20071104
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Nov 2007 00:24:45 +0000 (00:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 5 Nov 2007 00:24:45 +0000 (00:24 +0000)
commitf7ff9951885a1f5fb01d293198d58dd034e1331d
treee2be693c6ac36d9cbfbdf5bc7164d35e432a245d
parent331c45cd50f084996ea45596f6259ec1411f9be7
DEVEL15-windows-afsd-notification-20071104

the difference between osi_assert() and osi_assertx() is whether or not
a description is specified as part of the call.  When no message is
specified afsd_notifier() is called with a NULL msgp parameter.  This
results in a null pointer dereference during the EventLog() call.

As a result, none of the information describing the assertion is written
to the log file.

This commit sets a default message for use when no other message is
provided and it replaces all calls to osi_assert with osi_assertx and
adds descriptions.

(cherry picked from commit 89ac3ec2f68db045cf719d619eea1fb97a6364a3)
17 files changed:
src/WINNT/afsd/afsd_service.c
src/WINNT/afsd/cm_btree.c
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_callback.c
src/WINNT/afsd/cm_conn.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_freelance.c
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_server.c
src/WINNT/afsd/cm_user.c
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/cm_volume.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c
src/WINNT/afsd/smb_ioctl.c