strcat(ctmp, ctmp2);
client = ctmp;
- if ((counter != 0) && (n != 1)) krb5_free_principal(client_princ);
if (get_tgt (client, &client_princ, ccache)) {
errors++;
n_tried++;
errors++;
n_tried++;
}
+ krb5_free_principal(client_princ);
}
}
}
p_client_str,
ccache,
&my_creds);
- my_creds.server = 0;
+ my_creds.server = my_creds.client = 0;
+ krb5_free_address(my_addresses);
krb5_free_cred_contents(&my_creds);
if (code != 0) {
com_err (prog, code, "while getting initial credentials");