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

Change-Id: Ie97f1d449509777661f7fcc2bd0c799711861184
This commit is contained in:
Harald Welte 2020-05-25 18:15:15 +02:00
parent 06fff2aec1
commit e04382610b
1 changed files with 1 additions and 0 deletions

View File

@ -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");