Changeset b359a11


Ignore:
Timestamp:
12/13/18 16:17:04 (23 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
29760bc
Parents:
1668208
Message:

Fix uninitialised ETSI live sockets bug

If we ever had to extend the socket array, the sockets in the
extended portion of the array were not being initialised properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_etsilive.c

    rccabd47 rb359a11  
    362362                                sizeof(etsisocket_t) * (et->sourcealloc + 10));
    363363
     364                        for (i = et->sourcealloc; i < et->sourcealloc + 10;
     365                                        i++) {
     366                                et->sources[i].sock = -1;
     367                                et->sources[i].srcaddr = NULL;
     368                        }
    364369                        esock = &(et->sources[et->sourcealloc]);
    365370                        et->sourcealloc += 10;
Note: See TracChangeset for help on using the changeset viewer.