Browse code

core: init pv buffers earlier to be avaialble for cli params

- GH #3152

(cherry picked from commit a78adb5340ae6cb57f756189d070c32c49bfa426)

Daniel-Constantin Mierla authored on 28/06/2022 16:41:50
Showing 1 changed files
... ...
@@ -2172,6 +2172,10 @@ int main(int argc, char** argv)
2172 2172
 	init_tcp_options(); /* set the defaults before the config */
2173 2173
 #endif
2174 2174
 
2175
+	if (pv_init_buffer()<0) {
2176
+		goto error;
2177
+	}
2178
+
2175 2179
 	pp_define_core();
2176 2180
 
2177 2181
 	/* process command line (cfg. file path etc) */