ofproto: fix a segfault