macos: don't crash on krb5 damage

if we get success but still no client, don't crash

Reviewed-on: http://gerrit.openafs.org/6868
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 0a3f0608fc)

Change-Id: I6c3147ab45552d9f393a05de21cc06d2dcabcf38
Reviewed-on: http://gerrit.openafs.org/6870
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2012-03-04 09:48:07 -05:00
parent 08028745bc
commit f1c3eb41e3

View File

@ -149,7 +149,7 @@
&me);
in.client = me;
}
if (ret == 0) {
if ((ret == 0) && (in.client)) {
ret = krb5_build_principal_ext(kcontext, &server,
krb5_princ_realm(kcontext,
in.client)->length,