wan/hdlc_x25.c: fix a NULL dereference