~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to lib/kadm5/get_princs_s.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-10-03 23:50:05 UTC
  • mfrom: (1.1.15) (2.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20111003235005-0voibbgdhyqmtp6w
Tags: 1.5.dfsg.1-3
Add conflicts with kcc to heimdal-clients. Closes: #644138

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    struct foreach_data d;
86
86
    kadm5_server_context *context = server_handle;
87
87
    kadm5_ret_t ret;
88
 
 
89
 
    if (!context->keep_open) {
90
 
        ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0);
91
 
        if(ret) {
92
 
            krb5_warn(context->context, ret, "opening database");
93
 
            return ret;
94
 
        }
 
88
    ret = context->db->hdb_open(context->context, context->db, O_RDWR, 0);
 
89
    if(ret) {
 
90
        krb5_warn(context->context, ret, "opening database");
 
91
        return ret;
95
92
    }
96
93
    d.exp = expression;
97
94
    {
103
100
    d.princs = NULL;
104
101
    d.count = 0;
105
102
    ret = hdb_foreach(context->context, context->db, HDB_F_ADMIN_DATA, foreach, &d);
106
 
    if (!context->keep_open)
107
 
        context->db->hdb_close(context->context, context->db);
 
103
    context->db->hdb_close(context->context, context->db);
108
104
    if(ret == 0)
109
105
        ret = add_princ(&d, NULL);
110
106
    if(ret == 0){