changeset 44194:09f1bd069147

(DATAGRAM_CONN_P): Make sure PROC is really a process.
author Miles Bader <miles@gnu.org>
date Thu, 28 Mar 2002 06:42:43 +0000
parents f87a8b50aeff
children b38d3500df2f
files src/process.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Mar 27 23:20:07 2002 +0000
+++ b/src/process.c	Thu Mar 28 06:42:43 2002 +0000
@@ -307,7 +307,7 @@
   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)