kauth: Handle calls to ka_log with no principal
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 10:48:50 +0000 (10:48 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 7 Mar 2013 15:56:19 +0000 (07:56 -0800)
commit508674486a5b1b3b25d7f28febb41e8712d8592d
tree92836ad2286ae53a984286a0c5957baf39a156a4
parenta666bfd67bd14028aac5eb49f1bf02576fb58405
kauth: Handle calls to ka_log with no principal

If ka_log is called without a principal string, then the resulting
buffer will be garbage, as we don't start with a string for strlcat
to append to.

Caught by coverity (#985959)

Change-Id: I928b2807c093ac3f71a28150a117fd7b7eb29b05
Reviewed-on: http://gerrit.openafs.org/9396
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/kauth/kalog.c