--- ray/src/hd/rhdisp.c 1998/08/26 13:06:09 3.32 +++ ray/src/hd/rhdisp.c 1998/10/06 18:09:49 3.33 @@ -457,6 +457,11 @@ char *p; { MSGHEAD msg; int m; + /* consistency checks */ +#ifdef DEBUG + if (nbytes < 0 || nbytes > 0 & p == NULL) + error(CONSISTENCY, "bad buffer handed to serv_request"); +#endif /* get server's attention for big request */ if (nbytes >= BIGREQSIZ-sizeof(MSGHEAD)) { serv_request(DR_ATTEN, 0, NULL);