diff --git a/src/plugins/TrafficPlugin/TrafficPlugin.c b/src/plugins/TrafficPlugin/TrafficPlugin.c index b721993..5cf23aa 100644 --- a/src/plugins/TrafficPlugin/TrafficPlugin.c +++ b/src/plugins/TrafficPlugin/TrafficPlugin.c @@ -111,7 +111,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) { newitem->port = atoi((char *)argv[3]); newitem->coeff = atof((char *)argv[4]); /* проверка на корректность ввода */ - if ((newitem->port>65535) | (newitem->coeff<=0) | (newitem->coeff>100)) { + if ((newitem->port>65535) || (newitem->coeff<=0) || (newitem->coeff>100)) { free(newitem); if(DBGLEVEL == 1)fprintf(stdout, "Port must be 0con_type = TCP; newitem->psize = 52; - if ((!strcmp((char *)argv[3], "udp")) & (newitem->p_service != S_PROXY) & (newitem->p_service != S_TCPPM) & (newitem->p_service != S_POP3P)) { + if ((!strcmp((char *)argv[3], "udp")) && (newitem->p_service != S_PROXY) && (newitem->p_service != S_TCPPM) && (newitem->p_service != S_POP3P)) { newitem->con_type = UDP; newitem->psize = 48; } @@ -157,7 +157,7 @@ int h_trafcorrect(int argc, unsigned char ** argv) { newitem->psize = atoi((char *)argv[5]); } - if ((newitem->port>65535) | (newitem->psize<=0)) { + if ((newitem->port>65535) || (newitem->psize<=0)) { free(newitem); if(DBGLEVEL == 1)fprintf(stdout, "Port must be 0