char **argv;
int argc, retcode;
- *key_data == NULL;
+ *key_data = NULL;
if (list == NULL) {
if (n_key_data != 0) {
sprintf(interp->result, "0 key_datas specified, "
char **argv, **argv1 = NULL;
int i, tmp, argc, argc1, retcode;
- *tlp == NULL;
+ *tlp = NULL;
if (list == NULL) {
if (n_tl_data != 0) {
sprintf(interp->result, "0 tl_datas specified, "
GET_HANDLE(2, 0);
- if (krb5_ret = krb5_parse_name(context, argv[0], &source)) {
+ if ((krb5_ret = krb5_parse_name(context, argv[0], &source)) != 0) {
stash_error(interp, krb5_ret);
Tcl_AppendElement(interp, "while parsing source");
return TCL_ERROR;
}
- if (krb5_ret = krb5_parse_name(context, argv[1], &target)) {
+ if ((krb5_ret = krb5_parse_name(context, argv[1], &target)) != 0) {
stash_error(interp, krb5_ret);
Tcl_AppendElement(interp, "while parsing target");
krb5_free_principal(context, source);
GET_HANDLE(2, 0);
- if (krb5_ret = krb5_parse_name(context, argv[0], &princ)) {
+ if ((krb5_ret = krb5_parse_name(context, argv[0], &princ)) != 0) {
stash_error(interp, krb5_ret);
Tcl_AppendElement(interp, "while parsing principal name");
return TCL_ERROR;
GET_HANDLE(4, 0);
- if (krb5_ret = krb5_parse_name(context, argv[0], &princ)) {
+ if ((krb5_ret = krb5_parse_name(context, argv[0], &princ)) != 0) {
stash_error(interp, krb5_ret);
Tcl_AppendElement(interp, "while parsing principal name");
return TCL_ERROR;
GET_HANDLE(3, 0);
- if (krb5_ret = krb5_parse_name(context, argv[0], &princ)) {
+ if ((krb5_ret = krb5_parse_name(context, argv[0], &princ)) != 0) {
stash_error(interp, krb5_ret);
Tcl_AppendElement(interp, "while parsing principal name");
return TCL_ERROR;
if((tcl_ret = parse_str(interp, argv[0], &name)) != TCL_OK)
return tcl_ret;
if(name != NULL) {
- if (krb5_ret = krb5_parse_name(context, name, &princ)) {
+ if ((krb5_ret = krb5_parse_name(context, name, &princ)) != 0) {
stash_error(interp, ret);
Tcl_AppendElement(interp, "while parsing principal name");
return TCL_ERROR;
int tcl_kadm5_delete_policy(ClientData clientData, Tcl_Interp *interp,
int argc, char *argv[])
{
- krb5_principal princ;
- krb5_error_code krb5_ret;
kadm5_ret_t ret;
char *policy;
int tcl_ret;
ent = (kadm5_principal_ent_t) Tcl_GetHashValue(entry);
- if (ret = kadm5_free_principal_ent(server_handle, ent)) {
+ ret = kadm5_free_principal_ent(server_handle, ent);
+ if (ret != KADM5_OK) {
stash_error(interp, ret);
return TCL_ERROR;
}
ent = (kadm5_policy_ent_t) Tcl_GetHashValue(entry);
- if (ret = kadm5_free_policy_ent(server_handle, ent)) {
+ if ((ret = kadm5_free_policy_ent(server_handle, ent)) != KADM5_OK) {
stash_error(interp, ret);
return TCL_ERROR;
}