simtrace2: Set transp->udp_fd to -1 to indicate USB transport

Change-Id: Ie97f1d449509777661f7fcc2bd0c799711861184
changes/67/18467/1
Harald Welte 3 years ago
parent 06fff2aec1
commit e04382610b
  1. 1
      src/client/user_simtrace2.c

@ -411,6 +411,7 @@ int client_user_main(struct bankd_client *bc)
ifm->addr = cfg->usb.addr;
if (cfg->usb.path)
osmo_strlcpy(ifm->path, cfg->usb.path, sizeof(ifm->path));
transp->udp_fd = -1;
transp->usb_devh = osmo_libusb_open_claim_interface(NULL, NULL, ifm);
if (!transp->usb_devh) {
fprintf(stderr, "can't open USB device\n");

Loading…
Cancel
Save