snmp: avoid deferencing a pointer when it may be NULL
priv: avoid a socket leak when interface is already in promisc