Revision 61c1117f usb-linux.c

b/usb-linux.c
376 376
    i = 0;
377 377
    dev_descr_len = dev->descr[0];
378 378
    if (dev_descr_len > dev->descr_len) {
379
        goto fail;
379
        fprintf(stderr, "husb: update iface failed. descr too short\n");
380
        return 0;
380 381
    }
381 382

  
382 383
    i += dev_descr_len;
......
404 405
    if (i >= dev->descr_len) {
405 406
        fprintf(stderr,
406 407
                "husb: update iface failed. no matching configuration\n");
407
        goto fail;
408
        return 0;
408 409
    }
409 410
    nb_interfaces = dev->descr[i + 4];
410 411

  

Also available in: Unified diff