Skip to content
  • Filip Roséen's avatar
    access/satip: add missing initialization of sys->tcp_sock · 9a613134
    Filip Roséen authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    As the object referred to by sys is allocated with calloc,
    sys->tcp_sock will be equal to 0 if an error occurs prior to it being
    assigned a value in satip_open (such as when encountering a malformed
    URI).
    
    This will cause the error clean-up to assume that tcp->tcp_sock refers
    to an open file-descriptor, triggering an assert if no suck
    file-descriptor exists or closing a fd that access/satip definitely
    should not mess with.
    
    fixes: #18344
    
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    9a613134