test version

pull/23/head
Gerard Wagener 2018-11-28 18:20:16 +01:00
parent fc39325368
commit 4582aed7ed
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ int d4_check_config(d4_t* d4)
printf("TEST snaplen %d stdin %d stdout %d\n", d4->snaplen, STDIN_FILENO, STDOUT_FILENO);
//FIXME Check other parameters
if (( d4->destination.fd > 0 ) && ( d4->snaplen >0 )) {
if ((atoi(d4->conf[VERSION])>0) && ( d4->destination.fd > 0 ) && ( d4->snaplen >0 )) {
return 1;
}
return -1;