• Philip Withnall's avatar
    socket: Ensure variables are nullified correctly in UDP sockets · bdc72e78
    Philip Withnall authored
    When closing a socket, ensure its private data structure is set to NULL.
    When sending a message fails to construct a new socket address, ensure
    the pointer to the old address (which has just been unreffed) is removed.
    
    This makes debugging problems with sockets being freed early much
    easier.
    bdc72e78
udp-bsd.c 6.35 KB