Race conditions fixed on config reload

Race conditions on logging and name resolution
This commit is contained in:
z3APA3A committed 2015-12-04 00:59:52 +03:00
1 parent 1220c504bd
commit bd37ffa2f7
7 files changed
+41 -21

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ void * smtppchild(struct clientparam* param) {
if(!strncasecmp(command, "MAIL", 4) || !strncasecmp(command, "RCPT", 4) || !strncasecmp(command, "STARTTLS", 8) || !strncasecmp(command, "TURN", 4)){
res = (int)strlen(command);
command[res] = 0;
res = handlehdrfilterscli(param, &command, &res, 0, &res);
res = handlehdrfilterscli(param, (unsigned char **)&command, &res, 0, &res);
if(res != PASS) {
if(res == HANDLED) res = 2;
else RETURN(677);