version 1.3 | | version 1.4 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_sockets_c = | | * static char *rcsid_sockets_c = |
* "$Id: lowlevel.c,v 1.3 2000/05/21 21:41:46 jec Exp $"; | | * "$Id: lowlevel.c,v 1.4 2000/11/08 07:19:37 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (ns->status == Ns_Dead || !msg) | | if (ns->status == Ns_Dead || !msg) |
return; | | return; |
| | |
| | if (msg->len >= MAXSOCKBUF) { |
| | LOG(llevError,"Trying to send a buffer beyond properly size, len =%d\n", |
| | msg->len); |
| | /* Almost certainly we've overflowed a buffer, so quite now to make |
| | * it easier to debug. |
| | */ |
| | abort(); |
| | } |
sbuf[0] = ((uint32)(msg->len) >> 8) & 0xFF; | | sbuf[0] = ((uint32)(msg->len) >> 8) & 0xFF; |
sbuf[1] = ((uint32)(msg->len)) & 0xFF; | | sbuf[1] = ((uint32)(msg->len)) & 0xFF; |
if (ns->status != Ns_Old) | | if (ns->status != Ns_Old) |