forked from osmocom/wireshark
extcap: Fixed end application loop logic
This commit is contained in:
parent
4026590bd0
commit
e091e8755a
|
@ -350,7 +350,7 @@ static int handle_data(struct nl_cache_ops *unused _U_, struct genl_cmd *cmd _U_
|
|||
memcpy(&packet[2], data, data_size);
|
||||
|
||||
if (dump_packet(pcap_fp, packet, data_size + 2, ts) == EXIT_FAILURE)
|
||||
extcap_end_application = FALSE;
|
||||
extcap_end_application = TRUE;
|
||||
|
||||
return NL_OK;
|
||||
}
|
||||
|
|
|
@ -317,12 +317,12 @@ static void run_listener(const char* fifo, const guint16 port, const char* proto
|
|||
#else
|
||||
ws_warning("Error in recvfrom: %s (errno=%d)", strerror(errno), errno);
|
||||
#endif
|
||||
extcap_end_application = FALSE;
|
||||
extcap_end_application = TRUE;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (dump_packet(proto_name, port, buf, buflen, clientaddr, fp) == EXIT_FAILURE)
|
||||
extcap_end_application = FALSE;
|
||||
extcap_end_application = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue