client: assign proto to NULL, fix protential coredump