int rc, count = 0;
if (ld == NULL)
- return(-1);
+ goto done;
for (base = ldap_conf.base; base != NULL; base = base->next) {
result = NULL;
if (result)
ldap_msgfree(result);
}
+done:
return(count);
}
int rc, do_netgr, count = 0;
if (ld == NULL)
- return(-1);
+ goto done;
/*
* Okay - time to search for anything that matches this user
}
efree(filt);
}
+done:
return(count);
}
int nfound = 0;
if (nss->handle == NULL)
- return(-1);
+ goto done;
tq_foreach_fwd(&userspecs, us) {
if (userlist_matches(pw, &us->users) != ALLOW)
else
nfound += sudo_file_display_priv_short(pw, us, lbuf);
}
+done:
return(nfound);
}
int nfound = 0;
if (nss->handle == NULL)
- return(-1);
+ goto done;
if (lbuf->len == 0 || isspace((unsigned char)lbuf->buf[lbuf->len - 1]))
prefix = " ";
prefix = ", ";
nfound++;
}
-
+done:
return(nfound);
}
int host_match, runas_match, cmnd_match;
if (nss->handle == NULL)
- return(rval);
+ goto done;
match = NULL;
tq_foreach_rev(&userspecs, us) {
safe_cmnd, user_args ? " " : "", user_args ? user_args : "");
rval = 0;
}
+done:
return(rval);
}