From 40d4e954b09e6f08f101acf3d03937d2bd7d847e Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 22 Mar 2012 12:30:44 +0100 Subject: Always initialize the returned data in sss_krb5_princ_realm() --- src/util/sss_krb5.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit