Fixed race conditions with users on configuration reload

This commit is contained in:
z3APA3A committed 2015-12-03 01:13:34 +03:00
1 parent fcbb000b0e
commit 4709f7a7b9
2 files changed
+45 -39

No files matched your search

-7
View File
@@ -914,13 +914,6 @@ void * itfree(void *data, void * retval){
return retval;
}
void freepwl(struct passwords *pwl){
for(; pwl; pwl = (struct passwords *)itfree(pwl, pwl->next)){
if(pwl->user)myfree(pwl->user);
if(pwl->password)myfree(pwl->password);
}
}
void freeauth(struct auth * authfuncs){
for(; authfuncs; authfuncs = (struct auth *)itfree(authfuncs, authfuncs->next));
}