1
0
mirror of https://github.com/kakwa/uts-server synced 2024-11-11 12:08:54 +01:00

fix loglevel determination

This commit is contained in:
kakwa 2016-08-31 07:35:31 +02:00
parent aca650fa6f
commit ee5870509a

View File

@ -221,8 +221,10 @@ int set_params(rfc3161_context *ct, char *conf_file) {
for (int j = 0;; j++) { for (int j = 0;; j++) {
if (prioritynames[j].c_name == NULL) if (prioritynames[j].c_name == NULL)
break; break;
if (strcmp(prioritynames[j].c_name, value)) if (strcmp(prioritynames[j].c_name, value) == 0) {
ct->loglevel = prioritynames[j].c_val; ct->loglevel = prioritynames[j].c_val;
break;
}
} }
break; break;
; ;