mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
08028745bc
commit
f1c3eb41e3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user