diff options
Diffstat (limited to 'src/util/sss_krb5.c')
-rw-r--r-- | src/util/sss_krb5.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c index 0031d2401..75ce2a59a 100644 --- a/src/util/sss_krb5.c +++ b/src/util/sss_krb5.c @@ -951,6 +951,9 @@ void sss_krb5_princ_realm(krb5_context context, krb5_const_principal princ, if (data) { *realm = data->data; *len = data->length; + } else { + *realm = NULL; + *len = 0; } } #endif |