diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-07-12 18:18:21 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-07-14 16:04:58 +0200 |
commit | 277a01589b8d4b62f85cf41b2bf70fbe308909c9 (patch) | |
tree | da0787438034c2227f267240c89e0006e90698f1 /ipa-client | |
parent | fcd2922d86b523c0fe002b515fd91f00c97b6c5b (diff) | |
download | freeipa-277a01589b8d4b62f85cf41b2bf70fbe308909c9.tar.gz freeipa-277a01589b8d4b62f85cf41b2bf70fbe308909c9.tar.xz freeipa-277a01589b8d4b62f85cf41b2bf70fbe308909c9.zip |
Fix warning: Using uninitialized value ld.
If create_getkeytab_control fails variable uninitialized pointer 'ld' will be
used.
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipa-client')
-rw-r--r-- | ipa-client/ipa-getkeytab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c index d0e975f1a..c887cff9b 100644 --- a/ipa-client/ipa-getkeytab.c +++ b/ipa-client/ipa-getkeytab.c @@ -569,7 +569,7 @@ static int ldap_get_keytab(krb5_context krbctx, bool generate, char *password, struct krb_key_salt *es = NULL; int num_es = 0; struct berval *control = NULL; - LDAP *ld; + LDAP *ld = NULL; LDAPControl **srvctrl = NULL; BerElement *ber = NULL; ber_tag_t rtag; |