It is not necessary to do not allow run application if there is no conf file for port resolving, but instead print message to stderr.
Signed-off-by: Vadim Kochan <vadi...@gmail.com> --- lookup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lookup.c b/lookup.c index 36d03da..7533bae 100644 --- a/lookup.c +++ b/lookup.c @@ -39,8 +39,10 @@ void lookup_init_ports(enum ports which) file = lookup_port_files[which]; fp = fopen(file, "r"); - if (!fp) - panic("No %s found!\n", file); + if (!fp) { + fprintf(stderr, "No %s found for ports resolving!\n", file); + return; + } memset(buff, 0, sizeof(buff)); -- 2.6.1 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.