--- flow-tools-0.68.orig/src/flow-export.c 2004-03-31 09:11:14.000000000 +0600 +++ flow-tools-0.68/src/flow-export.c 2008-03-18 14:00:55.000000000 +0500 @@ -711,12 +711,11 @@ db_user = strsep(&tmp, ":"); db_pwd = strsep(&tmp, ":"); db_host = strsep(&tmp, ":"); - db_tmp = strsep(&tmp, ":"); db_name = strsep(&tmp, ":"); db_table = strsep(&tmp, ":"); db_port = atoi(db_tmp); - if (!db_user || !db_pwd || !db_host || !db_tmp || !db_name || !db_table) { + if (!db_user || !db_pwd || !db_host || !db_port || !db_name || !db_table) { fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); return -1; } @@ -892,7 +891,7 @@ db_name = strsep(&tmp, ":"); db_table = strsep(&tmp, ":"); - if (!db_user || !db_pwd || !db_host || !db_tmp || !db_name || !db_table) { + if (!db_user || !db_pwd || !db_host || !db_port || !db_name || !db_table) { fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); return -1; }