diff options
Diffstat (limited to 'src')
-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 0031d240..75ce2a59 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 |