- bug fix
This commit is contained in:
6
ease.c
6
ease.c
@ -760,7 +760,7 @@ static int EaseInit(SConnection * pCon, EaseBase * eab, int argc,
|
||||
SCWrite(pCon, "ERROR: host name too long", eError);
|
||||
return 0;
|
||||
}
|
||||
strlcpy(buf, argv[0], i);
|
||||
strncpy(buf, argv[0], i);
|
||||
buf[i] = '\0';
|
||||
host = buf;
|
||||
} else if (argc == 2) { /* host port syntax */
|
||||
@ -975,7 +975,9 @@ int EaseRestartWrapper(void *object, void *userarg, int argc, char *argv[])
|
||||
eab->ser->pHost = strdup(host);
|
||||
eab->ser->iPort = port;
|
||||
}
|
||||
EaseStop(eab);
|
||||
if (eab->task) {
|
||||
EaseStop(eab);
|
||||
}
|
||||
EaseRestart(eab);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user