From 4582aed7edae239979668b5a901fe3e1a6b4c2c4 Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Wed, 28 Nov 2018 18:20:16 +0100 Subject: [PATCH] test version --- client/d4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/d4.c b/client/d4.c index 25f6548..09f3da0 100644 --- a/client/d4.c +++ b/client/d4.c @@ -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;