afscp: avoid null dereference in _GetSecurityObject error case
authorGarrett Wollman <wollman@csail.mit.edu>
Sat, 28 Jul 2012 04:18:00 +0000 (00:18 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 28 Jul 2012 05:25:00 +0000 (22:25 -0700)
commitcac7bcda084879a876d93eb0480c2f7c76c25a4a
tree77365ea68ab5f47e1bd7fc7b83827d5f79bb7a26
parent2460396391a17b6dc44c493d21fe921604a16cda
afscp: avoid null dereference in _GetSecurityObject error case

Handle the possible error return from krb5_get_host_realm in the
same way as the other error cases (using an anonymous security
object); otherwise "realm" would be left null.

Change-Id: I5ce7a614a3e272b3a9903a8e95545a8116d1af3c
Reviewed-on: http://gerrit.openafs.org/7891
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/libafscp/afscp_util.c