• Mike Frysinger's avatar
    lib: masq_info: fix scanf addr loading on 64bit systems · 839f7607
    Mike Frysinger authored
    The code assumes that sizeof(sin_addr.s_addr) == sizeof(long) == 4 which
    fails badly on 64bit systems -- we end up reading 4 extra bytes into the
    storage.  Instead, load things indirectly via uint32_t variables since
    these are IPv4 addresses.
    839f7607
masq_info.c 6.32 KB