Comparing sock_addrs in general isn't a good idea, especially when you can easily avoid it. It will probably work, but I would recommend comparing mids.