src/sn_network.c: Fix comparison between signed and unsigned.