net: fix mempointer access warnings