src/server/daemon/keyfile_auth.c

changeset 99
b9a6af0ae41a
parent 97
09fbefc0e6a9
child 133
87b405d61f64
equal deleted inserted replaced
98:59656cd16411 99:b9a6af0ae41a
96 user->hashlen = util_base64decode(hash.ptr, hash.length, user->hash); 96 user->hashlen = util_base64decode(hash.ptr, hash.length, user->hash);
97 97
98 user->groups = calloc(ngroups, sizeof(sstr_t)); 98 user->groups = calloc(ngroups, sizeof(sstr_t));
99 for(int i=0;i<ngroups;i++) { 99 for(int i=0;i<ngroups;i++) {
100 user->groups[i] = sstrdup(groups[i]); 100 user->groups[i] = sstrdup(groups[i]);
101 //sstrdup(groups[i]); // wtf?
102 } 101 }
103 102
104 // add to keyfile 103 // add to keyfile
105 ucx_map_sstr_put(keyfile->users, name, user); 104 ucx_map_sstr_put(keyfile->users, name, user);
106 } 105 }

mercurial