+2002-03-28 Miles Bader <miles@gnu.org>
+
+ * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
+
2002-03-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* process.c (set-network-process-options): Add usage.
int len;
} datagram_address[MAXDESC];
#define DATAGRAM_CHAN_P(chan) (datagram_address[chan].sa != 0)
-#define DATAGRAM_CONN_P(proc) (datagram_address[XPROCESS (proc)->infd].sa != 0)
+#define DATAGRAM_CONN_P(proc) (PROCESSP (proc) && datagram_address[XPROCESS (proc)->infd].sa != 0)
#else
#define DATAGRAM_CHAN_P(chan) (0)
#define DATAGRAM_CONN_P(proc) (0)