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>
This commit is contained in:
1 parent
fcd2922d86
commit
277a01589b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user